如何在 Unix 中根据时间戳对文件进行排序? 我需要排序的文件,也基于他们创建的时间。
Use -t on ls. e.g:.
ls -tr
or
ls -ltr
File modification:
ls -t
Inode change:
ls -tc
File access:
ls -tu
"Newest" one at the bottom:
None of this is a creation time. Most Unix filesystems don't support creation timestamps.