Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Oct 2004 18:00:21 -0500
From:      Mike Meyer <mwm@mired.org>
To:        Ryan Sommers <ryans@gamersimpact.com>
Cc:        Giorgos Keramidas <keramida@FreeBSD.org>
Subject:   Re: Protection from the dreaded "rm -fr /"
Message-ID:  <16735.13061.592435.41234@guru.mired.org>
In-Reply-To: <415E6C4A.1010804@gamersimpact.com>
References:  <20041002081928.GA21439@gothmog.gr> <20041002083336.GA10355@k7.mavetju> <415E6C4A.1010804@gamersimpact.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In <415E6C4A.1010804@gamersimpact.com>, Ryan Sommers <ryans@gamersimpact.com> 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.

	<mike
-- 
Mike Meyer <mwm@mired.org>		http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.



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