News for hackers. Stuff that matters.
Re:How do I prevent accidental rm -rf /*? by chromejs10 on Saturday December 03, 2011 @02:10PM (#3308499)
alias it to ask "really? (y/n)" perhaps.
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.
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.
Re:How do I prevent accidental rm -rf /*? by guan on Saturday December 03, 2011 @04:02PM (#3308802)
Maybe people wouldn't get so used to it if it's only activated for rm -rf / (and perhaps /* and variants).
Re:How do I prevent accidental rm -rf /*? by dap on Saturday December 03, 2011 @04:25PM (#3308884)
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