bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rm -rf / protection


From: Jim Meyering
Subject: Re: rm -rf / protection
Date: Tue, 05 Oct 2004 15:41:15 +0200

address@hidden wrote:
> I thought this was interesting...
> http://blogs.sun.com/roller/page/jbeck/20041001#rm_rf_protection

Hi Padraig!

You've probably seen it, but others might not know that
GNU rm has had the --preserve-root option since coreutils-5.1.0.

  $ rm --help |grep e-ro
        --no-preserve-root do not treat `/' specially (the default)
        --preserve-root   fail to operate recursively on `/'

As soon as POSIX is changed, GNU rm's default will be changed to match.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]