[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rm -R /usr/



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "JIS" == Jacob I Stowell <js8319@csc.albany.edu> writes:
    JIS>  hello i am a new debian user and i just learned a hard lesson.
    JIS> I guess it is a bad idea to issue the following command:
    JIS> 
    JIS> rm -R /usr/
    JIS> 
    JIS> i try to look at the bright side, you know make lemonade and
    JIS> all that, so at least i get a new system as a result of my
    JIS> bonehead mistake.  Hopefully i will make different, and yet
    JIS> equally idiotic mistakes in the future.
    JIS> 
    JIS> thanks for listening, i just needed to vent.
    JIS> 

One way to reduce the likelihood of sth like that from happening again
is to alias rm to "rm -i" which puts rm in interactive mode. That way rm
will prompt you for everything but at least it will remind you whether
or not you really should go ahead.

Its not foolproof, however, since you could still type "rm -f" or "rm
- -fr" which will override the interactive mode ...

Be esp. careful when logged in as root.

- -- 
Salman Ahmed
ssahmed AT pathcom DOT com

http://www.pathcom.com/~ssahmed
GnuPG Key fingerprint = A6DB 6C85 DE5A 33BB E873  E437 58B2 09CD 977B 900B

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.5 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE5QuQRWLIJzZd7kAsRAqIQAKDCk6ep7HVLsbpR2Za97TJgd/4suwCeOzI6
QIcQnoYVQrQHTW3Q8/D8Nw8=
=qM9X
-----END PGP SIGNATURE-----



Reply to: