Saturday, February 24th, 2007

Infinite Loop with ‘cp’

Did you know you could create an infinite loop with the ‘cp’-command? I didn’t. I managed to create an infinite loop with the following commands:

cd dir
mkdir backup
cp -rfv ../* ./

Before I knew it, I had a 20-some level deep folder.


Comments are closed.