Re:How do I prevent accidental rm -rf /*?
by michaelcampbell on Saturday December 03, 2011 @03:00PM
(#3308635)
This is a dangerous but common crutch. The reason it's dangerous is people get used to it, and then when they go to a system where it's not there, pain and anguish (or hilarity, depending on your point of view) ensue.
[ Parent
| on HN ]
Re:How do I prevent accidental rm -rf /*?
by chromejs10 on Saturday December 03, 2011 @10:59PM
(#3309816)
I'm more of a fan of the other comment, which was basically "don't use -f then". Personally, when using that command at root, you should be pretty aware of what you're doing.
Maybe people wouldn't get so used to it if it's only activated for rm -rf / (and perhaps /* and variants).
Better yet, just use an OS that doesn't come with a self-destruct button: http://en.wikipedia.org/wiki/Rm_(Unix)#Protection_of_.2F