Posted Aug 20, 2010 0:08 UTC (Fri) by dlang (✭ supporter ✭, #313)
Parent article: One billion files on Linux
one of the headaches with doing a ls on a large number of files is that by default ls fetches everything then sorts it all by filename. there is an option to tell ls not to bother sorting the output (-N IIRC) and I've found that to be significant in many cases.
Posted Aug 24, 2010 0:59 UTC (Tue) by roelofs (guest, #2599)
[Link]
there is an option to tell ls not to bother sorting the output (-N IIRC) and I've found that to be significant in many cases.
I think you mean -f (at least for GNU ls). -N has something to do with quoting, according to ls --help. I've used the former but not the latter, AFAIR.