Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Prevent rm disasters' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Prevent rm disasters
Authored by: Radmin on Oct 03, '05 01:56:18PM

Better that you shouldn't use the command line if you're going to make this sort of mistake... At least after you do this once you'll have such pain associated with rm -rf that you won't be using it again so quickly.

Anyway, if you really need to protect yourself from this sort of stupidity, redefine rm as a shell to the real rm command that will check for this sort of syntax and warn...

[ Reply to This | # ]