How do I sort a list of files in UNIX?

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
  1. Sort by Name. By default, the ls command sorts by name: that is file name or the folder name. …
  2. Sort by Last Modified. In order to sort the contents by the last modified time, you should use the -t option. …
  3. Sort by File Size. …
  4. Sort by Extension. …
  5. Using the sort command.
 

Tìm kiếm

Back
Top