You can use Linux ls command with different options to sort the output by name, extension, size, or time.
Sort Linux ls command output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
## sort file name alphabetically by default ls -l ## reverse the sorted alphabetically output ls -lr ## sort alphabetically by extension ls -lX ## sort by size ls -lS ## sort by modification time ls -lt ## sort by version ls -lv |