如何根据unix中的时间戳对文件进行排序? [英] How to sort the files according to the time stamp in unix?
本文介绍了如何根据unix中的时间戳对文件进行排序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在unix中如何根据时间戳对文件进行排序?我需要对文件进行排序,并根据它们创建的时间进行排序.
How to sort the files according to the time stamp in unix? I need to sort the files and also based on time they created.
推荐答案
文件修改:
ls -t
inode 变化:
ls -tc
文件访问:
ls -tu
底部的最新":
ls -tr
这都不是创建时间.大多数 Unix 文件系统不支持创建时间戳.
None of this is a creation time. Most Unix filesystems don't support creation timestamps.
这篇关于如何根据unix中的时间戳对文件进行排序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文