Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Nov 2012 21:31:43 +0000
From:      Steve O'Hara-Smith <ateve@sohara.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: rm -rf and flags (schg, sunlnk)
Message-ID:  <20121114213143.1f482c2d628aec9f0d8c5bb4@sohara.org>
In-Reply-To: <50A4015A.3080909@shatow.net>
References:  <50A40046.1070307@dreamchaser.org> <50A4015A.3080909@shatow.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 14 Nov 2012 14:38:50 -0600
Bryan Drewery <bryan@shatow.net> wrote:


> Two options:
> 
>     find /PATH -flags schg -exec chflags noschg {} +
> or
>     chflags -R noschg /PATH
> 
> Then
> 
>     rm -rf /PATH

	it's often quickest to:

rm -rf /PATH
chflags -R noschg /PATH
rm -rf /PATH

	The other way requires two traversals of the full tree, this way
there's only one full traversal and a clean up which is small and fast.

-- 
Steve O'Hara-Smith <ateve@sohara.org>



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