News for hackers. Stuff that matters.
Re:Recovering deleted files using only grep by snori74 on Wednesday June 25, 2014 @02:10PM (#7945730)
Indeed. The whole "never run rm -rf" thing is so ingrained that someone I know took real joy in finally getting to legitimately use this to nuke an old server once the new one was signed off.

Pity he'd not considered that the old one had nfs mounts to the live data...

Re:Recovering deleted files using only grep by aquadrop on Wednesday June 25, 2014 @08:25PM (#7947520)
I think 'rm -rf /' shouldn't work and there should be special command instead of 'rm -rf /', something like rmrfhell, which would ask you three times if you sure and will tell you about pain and tears of other people who ran it.
Re:Recovering deleted files using only grep by LukeShu on Wednesday June 25, 2014 @10:07PM (#7947810)
In the GNU version, that mostly is the case. You need to specify `--no-preserve-root` for it to work, which is obscure enough.
Re:Recovering deleted files using only grep by blueskin_ on Thursday June 26, 2014 @11:12AM (#7950043)
Most versions have --preserve-root (fail if the target is /) on by default, so you have to use --no-preserve-root , although rm -rf /* will still work.