[Top][All Lists]

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

Re: rm option to not recurse across filesystems

From: Kamil Dudka
Subject: Re: rm option to not recurse across filesystems
Date: Sat, 27 Dec 2008 13:43:46 +0100
User-agent: KMail/1.9.7

On Saturday 27 of December 2008 07:06:48 Eric Blake wrote:
> According to Joshua Hudson on 12/26/2008 10:01 PM:
> > I would suggest an option kind of like -xdev to not cross mount points
> > and therefore prevent a lot of stupid disasters.
> > Kind of like rm -rf / is always a bad idea, rm -rf /tmp/* while
> > another filesystem is mounted in /tmp is always a bad idea.
> >
> > No, I haven't made that mistake myself yet.
> Thanks for the report.  However, GNU findutils already provides this
> ability:
> find /tmp -depth -xdev -delete
> It seems to me to be hard to justify adding extensions to rm when another
> tool can already do the desired filtering job.
I can see we already have such option in rm: --one-file-system
(introduced in coreutils 6.5 according to NEWS)


reply via email to

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