Quick ls command Quick ls command unix unix

Quick ls command


ls -U

will do the ls without sorting.


Try using:

find . -type f -maxdepth 1

This will only list the files in the directory, leave out the -type f argument if you want to list files and directories.


I have a directory with 4 million files in it and the only way I got ls to spit out files immediately without a lot of churning first was

ls -1U