4 ms·
It’s not “ls -1” but “--sort=none” or “-U”.
by acdha 5y ago
It’s not “ls -1” but “--sort=none” or “-U”.
- loeg 5y ago"ls -f" in POSIX ls (which GNU ls also implements). Also, avoid "-F", which will stat each file.
- the_arun 5y ago`ls | more` works too, right?
- loeg 5y agoAt least with GNU ls, 'ls | more' does not disable sorting. It disables automatic color (which is important -- coloring requires 'stat(2)'ing every file in the directory).
- acdha 5y agoNo - it still does all of the work to sort the entries, which is the slow part since it prevents the first entry from being displayed until the last has been retrieved.