My ls sorts by name by default. What are you seeing? man ls states: List information about the FILEs (the current directory by default). Sort ...
The ls command lists files and directories within the file system, and
The sort order depends on the locale. The default C locale sorts as in your example: $ LC_COLLATE=C ls -A .hidden Zappa aardvark vent ...
Listing files alphabetically is the default. Maybe you could elaborate on your needs? "Proof that there is intelligent life in Oregon. Well, Life ...
ls -ld */. This will give you the directories in the current directory in ls long format, in lexicographical order. If a file is a symbolic link to a directory, this will be listed ...
The easiest way to list files by name is simply to list them using the ls command. Listing files by name (alphanumeric order) is, after all, the ...
bash-3.00$ ls | sort -fr folder 3 folder_2 Folder 2 Folder_1 Folder 1 B.txt A.txt a 2. txt ...
This will print the list to the screen in alphabetical order (numbers first, then capital words, then lowercase words). To eliminate any duplicate ...
or this, to keep alphabetic order for files with the same permissions : ls -al ...
ls accepts -r / --reverse to reverse the order of its output. Since its output is in alphabetical order by default, reversing it should do what you want ...