Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Oct 2004 19:39:56 +0100
From:      Thomas Sparrevohn <Thomas.Sparrevohn@btinternet.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Protection from the dreaded "rm -fr /"
Message-ID:  <200410031939.56433.Thomas.Sparrevohn@btinternet.com>
In-Reply-To: <20041003222523.J9166@woozle.rinet.ru>
References:  <20041002210554.GS35869@seekingfire.com> <20041003.113739.95785967.imp@bsdimp.com> <20041003222523.J9166@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410031939.56433.Thomas.Sparrevohn>