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

Re: Rechteproblem - rekursives 644 mit Ausschluß der Verzeichnisse



Am 2005-01-02 18:49:13, schrieb Thomas Jahns:
> Michelle Konzack <linux4michelle@freenet.de> writes:
> > 
> > find -type f -exec chmod 644 {} ';'
> > 
> 
> Das ist nicht besonders effizient. Konkret wird für jede reguläre Datei,
> die find aufspürt, ein neuer Prozess gestartet:
> 
> 100.000 Dateien => 100.000 gestartete Prozesse
> 
> Da ist xargs um den Faktor 1024 effizienter (oder wie viele Elemente
> in argv waren gleich noch erlaubt?).

'xargs' ruft dann aber auch 100.000 mal chmod auf.

> Thomas Jahns

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: