News for hackers. Stuff that matters.
Re:Suicide Linux (2011) by XorNot on Sunday April 19, 2015 @12:23AM (#9402028)
Lately I've been advising people to use find -delete rather them rm.

Ever tried to clear the current directory with rm? It's actually amazingly tricky and dangerous to wipe out dot files without moving up directories. Whereas find has the benefit of saying exactly what it'll do before it does it (and being a bit faster IMO).

The thing I'm really missing in find is a native -chown and -chmod flag now.

Re:Suicide Linux (2011) by jqm on Sunday April 19, 2015 @01:04AM (#9402095)
rm . * (extra space) has gotten me a few times. I bet I'm not the only one either.
Re:Suicide Linux (2011) by krylon on Sunday April 19, 2015 @05:00AM (#9402476)
I once wanted to delete backup files left by emacs in the current directory. Instead of

  rm -rf *~
I typed

  rm -rf * ~
At least I learnt to use -rf more carefully. Way more carefully.