rm -rf and flags (schg, sunlnk)
Steve O'Hara-Smith
ateve at sohara.org
Wed Nov 14 21:31:56 UTC 2012
On Wed, 14 Nov 2012 14:38:50 -0600
Bryan Drewery <bryan at 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 at sohara.org>
More information about the freebsd-questions
mailing list