1.1 in Linux.time is divided into three kinds
1.mtime(Modify time) modification times , file / directory modification time, file content modification
2.ctime change time, changes in File/ directory properties, modified time, size, number of hard links, permissions, owner, owning group, type
3.atimeaccess time, access time of file / or directory, access time is not changed after viewing the file and the content is not changed
use Stat to view file details
[Email protected] tmp]# stat test.txt
File: ' Test.txt '
size:0 blocks:0 IO block:4096 Regular empty file
device:803h/2051d inode:398305 links:1
Access: (0644/-rw-r--r--) Uid: (0/root) Gid: (0/root)
access:2017-07-29 15:02:22.478435838 +0800 # #访问时间
modify:2017-07-29 15:02:22.478435838 +0800 # #修改时间
change:2017-07-29 15:02:22.478435838 +0800 # #改变时间
[Email protected] tmp]# echo 1 >test.txt
[Email protected] tmp]# stat test.txt
File: ' Test.txt '
Size:2 blocks:8 IO block:4096 Regular file
device:803h/2051d inode:398305 links:1
Access: (0644/-rw-r--r--) Uid: (0/root) Gid: (0/root)
access:2017-07-29 15:02:22.478435838 +0800
modify:2017-07-29 15:03:09.540436756 +0800
change:2017-07-29 15:03:09.540436756 +0800
[email protected] tmp]# cat Test.txt
1
[Email protected] tmp]# stat test.txt
File: ' Test.txt '
Size:2 blocks:8 IO block:4096 Regular file
device:803h/2051d inode:398305 links:1
Access: (0644/-rw-r--r--) Uid: (0/root) Gid: (0/root)
access:2017-07-29 15:03:30.688435443 +0800
modify:2017-07-29 15:03:09.540436756 +0800
change:2017-07-29 15:03:09.540436756 +0800
[Email protected] tmp]#
<>> Novice, please give me a lot of advice <><><><><><><><><><><> <<><><><><><><><><><><><>>
This article is from the "Qizhong" blog, make sure to keep this source http://qizhong.blog.51cto.com/12933988/1952086
What are the Times in Linux divided into?