Unix's 'ls' sort by name

Devang Kamdar picture Devang Kamdar · May 18, 2009 · Viewed 284.8k times · Source

Can you sort an ls listing by name?

Answer

Evert picture Evert · May 18, 2009

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 entries alpha‐betically if none of -cftuvSUX nor --sort is specified.: