How can i see Timestamps in Unix files [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
开发者_运维知识库 Improve this questionFiles 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
精彩评论