开发者

How can i see Timestamps in Unix files [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜