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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With