开发者

How to sort the files according to the time stamp in unix? [closed]

开发者 https://www.devze.com 2023-03-06 03:12 出处:网络
Closed. This question is off-topic. It is not currentl开发者_高级运维y accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currentl开发者_高级运维y accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

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.


File modification:

ls -t

Inode change:

ls -tc

File access:

ls -tu

"Newest" one at the bottom:

ls -tr

None of this is a creation time. Most Unix filesystems don't support creation timestamps.


Use -t on ls. e.g:.

ls -tr

or

ls -ltr
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号