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

Re: hurtowa zmiana praw plikow



On Thu,  9 May 2002 22:06:54 +0200, Marcin Kasperski wrote:
[...]
> > find * -type f|xargs chmod 755 -R *
> > 
> > Nie testowałem. Generalnie skorzystaj z xargs.
> > 
> 
> Iii, komplikujecie życie. Wystarczy tak:
> 
> find . -type f -exec chmod 644 {} \;
> find . -type d -exec chmod 755 {} \;

$ time find -type f -exec chmod 644 {} \;
find -type f -exec chmod 644 {} \;  50,61s user 44,82s system 21% cpu 7:14,91 total

$ time find -type f | xargs chmod 644
find -type f  0,05s user 0,12s system 21% cpu 0,808 total
xargs chmod 644  0,12s user 0,27s system 41% cpu 0,949 total

W katalogu z 9999 plikami. 

-- 
Michał Politowski -- mp@mp.pl.eu.org
Warning: this is a memetically modified message


--
To UNSUBSCRIBE, email to debian-user-polish-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: