On Sun, 22 Mar 1998, Kees-Jan Dijkzeul wrote:
[...]
>Of the top of my head (you might want to remove the worst syntax errors
>using the find man page):
>
>find /root \( -type d -exec chmod 700 {} \; \) -o \
> \( -type f -exec chmod 600 {} \; \)
>
>Or, alternatively:
>
>find /root -type d -print0 | xargs -0 chmod 700
>find /root -type f -print0 | xargs -0 chmod 600
>
>I'm not sure which one is faster.
The second would be since it spawns far fewer "chmod" processes than
the first does. The first spawns a separate "chmod" process for
each directory and file encountered. The second spawns a separate
"chmod" process for every hundred (or even more) files and directories
encountered.
--
Steve Coile
[EMAIL PROTECTED]
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.