The three time attributes for files under Linux are as follows:
Mtime (modtime) ——— modification times for files
When we change the contents of a file, the mtime of the file changes, such as when our team's data file is being edited by VIM, its time changes:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/80/5C/wKioL1c-uknTGqlgAAAo-Li_jp8349.png "title=" QQ picture 20160520151523.png "alt=" Wkiol1c-ukntgqlgaaao-li_jp8349.png "/>
It is important to note that the default output time for Ls-l is Mtime
Atime (accesstime) ——— access time
When we access the file, the access time of the file changes, such as the result of printing the contents of the file through cat instructions:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/80/5F/wKiom1c-vH-wqYdJAAC7qB6TLYc795.png "title=" Untitled. png "alt=" Wkiom1c-vh-wqydjaac7qb6tlyc795.png "/>
Obviously, after accessing the file data, the atime of the file has changed.
CTime (changetime) ——— Change Time
When changes to other properties of the file change the time of the file change (in addition to the access time and modification time of the two file attributes), here we use chmod to change the permissions of the file and then print the file attributes can be seen:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/80/5F/wKiom1c-vfuhogulAACv8aR9OM0840.png "title=" Untitled. 1png.png "alt=" Wkiom1c-vfuhogulaacv8ar9om0840.png "/>
This article is from the "Pawnsir It Road" blog, so be sure to keep this source http://10743407.blog.51cto.com/10733407/1775418
Three time attributes for "essay" Linux Files