命令

按修改时间倒序排列,得到前10个文件

ll -t | head -10

按修改时间正序排列,得到前10个文件

ll -rt | head -10

通过man ls可以知道

-t表示: Sort by descending time modified (most recently modified first). If two files have the same modification timestamp, sort their names in ascending lexicographical order.
-s表示: Reverse the order of the sort.

类推

按文件大小倒序排序文件

ll -Sh | head -10

-S表示: Sort by size (largest file first) before sorting the operands in lexicographical order.