The ls command lists files and directories within the file system, and
It lists the contents sorted in alphabetical order. Linux LS
uses either the beforementioned Windows API or Linux sorting and should be used
In future examples, we've used Mac output as the default - Linux and Windows
The same using only ls :
Listing files by name (alphanumeric order) is, after all, the default. You can choose the ls (no details) or ls -l (lots of details) to determine your view.
When you enter the ls command by itself, it lists all the files in your current location. If you enter
is set to SCANDIR_SORT_DESCENDING , then the sort order is alphabetical in
or this, to keep alphabetic order for files with the same permissions :
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 ...