Three time attributes for "essay" Linux Files

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.