On 14.05.11 21:18, Josh Smift wrote:
> YD>  USE COMMAND LINE HISTORY!!!
> YD>
> YD>  Write the command exactly as you would with the rm, but use ls
> YD>  instead. Verify that what you see is what you want to be delete.
>
> This is pretty good advice, and would defend against my favorite example,
> 'sudo rm -rf / var/log/junk, where a space slips in at the wrong place.

I've gotten into a habit of tab-completing every file and directory, 
always. If it doesn't complete, it doesn't exist or it warns me that I 
have to be extra careful because i'm using sudo to remove the directory 
not readable to normal user.
_______________________________________________
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