News for hackers. Stuff that matters.
Re:Man accidentally 'deletes his entire company' with one li... by rosser on Thursday April 14, 2016 @01:37PM (#11498790)
Table saws should never be used on flesh. rm(1) should always be used on files. How in FSM's noodly universe is the command supposed to intuit which files it should safely delete versus those it shouldn't?

> ...or administrative action.

You mean like, "sudo rm -rf {$undefined_value}/{$other_undefined_value}"? D'oh!

Re:Man accidentally 'deletes his entire company' with one li... by nickpsecurity on Thursday April 14, 2016 @08:12PM (#11501212)
Two different people here have already figured out this wouldn't have happened in OpenVMS due to versioned filesystem w/ rollback. People also claim saner commands for this stuff but I can't recall if remove was smarter.

Anyway, pertaining to RM, here you go:

https://launchpad.net/safe-rm

Re:Man accidentally 'deletes his entire company' with one li... by yrro on Thursday April 14, 2016 @01:50PM (#11498926)
Make `--one-file-system` the default!
Re:Man accidentally 'deletes his entire company' with one li... by rbanffy on Thursday April 14, 2016 @07:40PM (#11501096)
He really should not have made the first element of the path variable. Doing an "rm -rf /folder/{$undefined_value}/{$other_undefined_value}" would have made his day much better.

Also, never having all backup disk volumes mounted at the same time is good practice.