On 5/14/2011 4:48 AM, Yves Dorfsman wrote: > 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. One sysadmin I worked with told me that whenever I was going to delete a line in MySQL I should first type 'limit 1' and a bunch of garbage followed by a semi-colon:
limit 1 asdklvf; Then prepend to that the delete I intended to do, just in case I accidentally hit enter at the wrong time. Struck me as a little bit of overkill! _______________________________________________ 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/
