View Single Post
Old 12-14-2022, 03:14 PM   #21
Renate
Wizard
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 2,408
Karma: 10000009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
Quote:
Originally Posted by ottischwenk View Post
ls -l > /dev/null dauert ca 1 Minute.
Aber es passiert nichts sichtbares.
It shouldn't print anything. You're dumping everything so we don't have to consider that in the time equation.
Here's a (slightly) better way to do things:
Code:
$ time ls -Rl | wc
   8633   64901  519773
    0m00.33s real     0m00.15s user     0m00.29s system
That's a big reference folder of mine.
No, there's not a single directory with a zillion files, but the entire tree contains ~8000 files. This takes effectively zero time (1/3 of a second).
Renate is online now   Reply With Quote