Search code examples
unixls

Sort 'ls' output by name


Can you sort an ls listing by name?


Solution

  • 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 alphabetically if none of -cftuvSUX nor --sort is specified.