From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 3 18:40:32 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03AE716A4CE for ; Sun, 3 Oct 2004 18:40:32 +0000 (GMT) Received: from smtp812.mail.ukl.yahoo.com (smtp812.mail.ukl.yahoo.com [217.12.12.202]) by mx1.FreeBSD.org (Postfix) with SMTP id 3133E43D54 for ; Sun, 3 Oct 2004 18:40:31 +0000 (GMT) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from unknown (HELO w2fzz0vc01.aah-go-on.com) (thomas.sparrevohn@hg1.btinternet.com@81.157.227.120 with plain) by smtp812.mail.ukl.yahoo.com with SMTP; 3 Oct 2004 18:40:30 -0000 From: Thomas Sparrevohn To: freebsd-hackers@freebsd.org Date: Sun, 3 Oct 2004 19:39:56 +0100 User-Agent: KMail/1.7 References: <20041002210554.GS35869@seekingfire.com> <20041003.113739.95785967.imp@bsdimp.com> <20041003222523.J9166@woozle.rinet.ru> In-Reply-To: <20041003222523.J9166@woozle.rinet.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200410031939.56433.Thomas.Sparrevohn@btinternet.com> Subject: Re: Protection from the dreaded "rm -fr /" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Thomas.Sparrevohn@btinternet.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2004 18:40:32 -0000 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.