[Nottingham] *nix most dangerous command line commands...

Jason Irwin jasonirwin73 at gmail.com
Thu Jun 12 11:25:16 UTC 2014


On 12/06/14 12:13, Peter Stokes wrote:
> Many moons ago, I was on a customer site logged in as root and mistyped the cd location I wanted to go to, then not realising I was still in the / directory, I then typed 
> 
> rm -r *
> 
> End of operating system......

Luckily that will no longer work any more (certainly on modern
Debian-based systems). One needs to add "--no-preserve-root". Of course,
that doesn't protect one from being fat-fingered in other locations....

-- 
╔═════════════╦══════════════════════════════════════════╗
║ Jason Irwin ║ OpenPGP (GPG/PGP) Public Key: 0xD0C592B1 ║
║             ║ Import from hkp://subkeys.pgp.net        ║
╚═════════════╩══════════════════════════════════════════╝



More information about the Nottingham mailing list