SDIR

How to sort files into different orders?

By default Sdir sorts files into file name order, however files can be sorted via any metadata attribute that Sdir supports. Sorting can be both in ascending order by specifying -s, or descending order via -i. Multiple sort criterias can be used so that if two files are equal via one criteria, the next criteria is applied. The below example shows sorting a directory firstly via file extension, and if the extension is the same, via file size where the largest file is displayed first and the smallest is displayed last.

Screenshot of sdir

File attributes

A list of file attribute values and meanings is available here.