There are a few 'rm -Rf /', 'rm -Rf .*' etc... in this thread.

When I see another person (sysadmin, programmer, etc... typing an rm command 
without first trying ls I always explain my strategy:

USE COMMAND LINE HISTORY!!!

Write the command exactly as you would with the rm, but use ls instead. Verify 
that what you see is what you want to be delete. Use your command line history 
(set -o vi, set -o emacs etc...), recall that command and substitute ls with 
rm. Even if you delete with a find command, do it first with ls, output to a 
file, verify.

In the same line, I ALWAYS type 'uname -n' before I shutdown/reboot a machine. 
Yes I do put the machine name in the prompt, but for one I've seen people 
hard-coding the name in /etc/profile and copying that script from machine to 
machine, and for two, typing 'uname -n' and checking the results forces me to 
stop for a second or two and check that I am on the right window, on the right 
machine.

-- 
Yves.                                                  http://www.SollerS.ca/
                                                        http://blog.zioup.org/
_______________________________________________
Discuss mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to