Protection from the dreaded "rm -fr /"

Thomas Sparrevohn Thomas.Sparrevohn at btinternet.com
Sun Oct 3 11:40:32 PDT 2004


A simple and pragmatic solution is to use alias in what ever shell you are 
using e.g. alias rm to rm -i. There used to be a simple "delete" command or 
script that basically moved all files into a ".deleted" directory insted of 
actually deleting the files - From a practical point of view it does the 
trick because it forces anybody to use the escaped version if they really 
want to delete the files.



More information about the freebsd-hackers mailing list