开发者

How can i see Timestamps in Unix files [closed]

开发者 https://www.devze.com 2023-04-07 18:52 出处:网络
Closed. This question is off-topic. It is not currently 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 currently 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

Files in UNIX filesystems have 3 types of timestamps: Access, Modify, and Change. In order to investigate this, I created a file and I want to look at timestamps . Anybody knows how can i look the different timestamps. Then, which commands timestamps.


Use stat command:

stat filename


to change the atime and mtime, use the touch command:

touch --time=atime -t 198805232211.45
touch --time=mtime -t 205012300945.30
0

精彩评论

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

关注公众号