Date: Mon, 4 Oct 2004 13:26:47 +0100 From: Chris Howells <lists@chrishowells.co.uk> To: freebsd-hackers@freebsd.org Subject: Re: Protection from the dreaded "rm -fr /" Message-ID: <200410041326.51591.lists@chrishowells.co.uk> In-Reply-To: <200410040808.i9488gal006311@grimreaper.grondar.org> References: <200410040808.i9488gal006311@grimreaper.grondar.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1682926.m4AtDa1FI6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 04 October 2004 09:08, Mark Murray wrote: > Yeah. > > $ alias rm=3D"rm -i" > > and you get the annoying =A0"confirm all deletes" behaviour. Remember that -r over-rides -i, so the warning does not appear: bash-2.05b$ mkdir blah bash-2.05b$ rm -irf blah bash-2.05b$ mkdir blah bash-2.05b$ rm -if blah rm: blah: is a directory bash-2.05b$ rm -ir blah remove blah? y bash-2.05b$ =2D-=20 Cheers, Chris Howells -- chris@chrishowells.co.uk, howells@kde.org Web: http://chrishowells.co.uk, PGP ID: 0x33795A2C KDE/Qt/C++/PHP Developer: http://www.kde.org --nextPart1682926.m4AtDa1FI6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD4DBQBBYUGLF8Iu1zN5WiwRAoQLAJiJT8HymFa//OgkvCCdDdBpFeYtAJ4xCj/x a+HNjgVv2rm9B9d2XL0zLA== =chBQ -----END PGP SIGNATURE----- --nextPart1682926.m4AtDa1FI6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410041326.51591.lists>