Under Linux, the three time parameter files
(1) modification time (mtime): content modification time
The fix time refers to the contents of the file changes and updates.
Eg: After vi save the file.
(2) status time (ctime): Modified state
The fix time refers to the attributes or file permissions changed, and updated.
Eg: by chmod, chown command to modify a file attribute, this time will be updated.
(3) access time (atime): the last access time
Where access time is the file is read, and update time.
Eg: use more, cat and other commands to this file. ls, stat command will not modify the access time of the file.
It is worth noting: Linux, the file does not establish the time, so the files under linux setup time is not judgment, the judgment can only be updated more than three times.
ls -lc test: see ctime test file
ls -lu test: see test file atime
ls -l test: see mtime test file
Effects of each of the three time parameters of the operation (hereinafter, in order to verify the version centos 7)
operating | atime | mtime | ctime |
mv | no change | no change | changed |
cp | changed | no change | no change |
touch | changed |
changed | changed |
cat/more/less | changed |
no change | no change |
ls | no change | no change | no change |
chmod/chown | no change | no change | changed |
ln | no change | no change | changed |
echo | no change | no change | no change |
we | no change | changed | changed |