While reading slashdot i came accross a thread that discussed friendly fire of "rm".
I know every one of you unix geek has suffered from it atleast once. A mistakingly given rm command.
But the thread had a brilliant idea, put a file naded "-i" in the directory.
so if you type by mistake "rm -rf /* .tmp" the / directory will expand having -i in the command line and rm will ask confirmation before proceeding :D
Althoguh i haven't tried it yet, will see... it will be dumb try if shell just adds an escape sequence in it's expanded strings.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment