This is the case at work, you need to display all files, has displayed the sort chronologically or file size
Command: ls
1. chronological display files
1
|
test
@> ll -rt
|
2. Sorting by file size display file (File Size Unit: k, M)
1
|
test
@> ll -Sh
|
Explanation of the parameters as follows:
-r, --reverse reverse order while sorting
-t sort by modification time
-S sort by file size
-h, --human-readable with -l, print sizes in human readable format
(e.g., 1K 234M 2G)
Reprinted from: https: //www.cnblogs.com/recognition/p/5329992.html