Phạm Quyết
New member
How do I sort a list of files in UNIX?
Answer
how to sort the output of ‘ls command’ in linux command line
Answer
how to sort the output of ‘ls command’ in linux command line
- Sort by Name. By default, the ls command sorts by name: that is file name or the folder name. …
- Sort by Last Modified. In order to sort the contents by the last modified time, you should use the -t option. …
- Sort by File Size. …
- Sort by Extension. …
- Using the sort command.