How can I see timestamps in Unix files

Files on UNIX file systems have 3 types of timestamps: access, change, and change. To explore this, I created a file and I want to look at timestamps. Does anyone know how I can view different timestamps. Then, which manages the timestamps.

+5
source share
2 answers

Use the command stat:

stat filename
+9
source

to change atimeand mtimeuse the command touch:

touch --time=atime -t 198805232211.45
touch --time=mtime -t 205012300945.30
+3
source

All Articles