LWN.net Logo

One billion files on Linux

One billion files on Linux

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.


(Log in to post comments)

One billion files on Linux

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.

Greg

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds