News for hackers. Stuff that matters.
Re:How do I prevent accidental rm -rf /*? by dools on Saturday December 03, 2011 @04:21PM (#3308875)
I don't have an account on StackExchange but the best way to avoid this is to always run find and then pipe to rm.

find . -name "whatevs"

hit enter, verify you are deleting what you expect then hit the up arrow and type:

| xargs rm -rf

Re:How do I prevent accidental rm -rf /*? by sirn on Saturday December 03, 2011 @04:26PM (#3308891)
...or just use `-delete`:

   find . -iname "whatever" -delete
Otherwise you're screwed if someone managed to put a file named "/" somewhere in your find directory, which `-delete` has safe-guard for.