Re: directories wieder ausführbar machen
Am Fri, 05. Jul 2013 um 22:32:53 +0200 schrieb Spiro Trikaliotis:
> Hm... Ist das effizienter als:
>
> $ find . -type d -exec chmod +x \{\} \+
>
> ? Ich habe da meine Zweifel.
Nur mal ein schneller Test über mein $HOME (Daten sind bereits alle
gecached):
~$ /usr/bin/time -f "%E\n" find . -type d -exec ls -lah {} \; > /dev/null
0:59.14
~$ /usr/bin/time -f "%E\n" find . -type d -exec ls -lah {} \+ > /dev/null
0:07.83
~$ /usr/bin/time -f "%E\n" find . -type d -print0 | xargs -0 ls -lah > /dev/null
0:06.92
Ergebnisse sind über mehrere Läufe reproduzierbar.
Dirk
Reply to: