From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 2 23:00:26 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 DD68116A4CF for ; Sat, 2 Oct 2004 23:00:26 +0000 (GMT) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6E5C43D49 for ; Sat, 2 Oct 2004 23:00:26 +0000 (GMT) (envelope-from mwm-dated-1097622024.01bc05@mired.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id 04C61153F97 for ; Sat, 2 Oct 2004 16:00:25 -0700 (PDT) Received: from mired.org (mwm@idiom [216.240.32.1]) by idiom.com (8.12.11/8.12.11) with SMTP id i92N0OrI096096 for ; Sat, 2 Oct 2004 16:00:24 -0700 (PDT) (envelope-from mwm-dated-1097622024.01bc05@mired.org) Received: (qmail 2498 invoked by uid 100); 2 Oct 2004 23:00:24 -0000 Received: by guru.mired.org (tmda-sendmail, from uid 100); Sat, 02 Oct 2004 18:00:22 -0500 (CDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16735.13061.592435.41234@guru.mired.org> Date: Sat, 2 Oct 2004 18:00:21 -0500 To: Ryan Sommers In-Reply-To: <415E6C4A.1010804@gamersimpact.com> References: <20041002081928.GA21439@gothmog.gr> <20041002083336.GA10355@k7.mavetju> <415E6C4A.1010804@gamersimpact.com> X-Mailer: VM 7.17 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer X-Mailman-Approved-At: Sun, 03 Oct 2004 12:07:45 +0000 cc: freebsd-hackers@FreeBSD.org cc: Edwin Groothuis cc: Giorgos Keramidas Subject: Re: Protection from the dreaded "rm -fr /" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2004 23:00:27 -0000 In <415E6C4A.1010804@gamersimpact.com>, Ryan Sommers typed: > Edwin Groothuis wrote: > >On Sat, Oct 02, 2004 at 11:19:28AM +0300, Giorgos Keramidas wrote: > >I'm not so much worried about 'rm -rf /', but I'm more worried about > >"rm -rf *" in my home directory. It happened once because I was too > >happy switching directories before realising what I was doing in > >the wrong directory. > If you use tcsh for your shell add: > > set rmstar > > to your .cshrc file. Then anytime you use '*' as an argument to rm it > will ask you if you are sure you want to do that. zsh does this by default as well. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.