There are three "time" files under Linux

Source: Internet
Author: User

Instance

Let's take the actual operation example. In the following example, follow code.tgz (red)

You can ignore that code.

The next one is me in the code directory, separate execution

Ls-lls-lcls-lu

After the operation results:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/80/5E/wKioL1c-xHbSbr5dAAAs2t11u6Q603.png "title=" 1.png " alt= "Wkiol1c-xhbsbr5daaas2t11u6q603.png"/>

As you can see, the system prints out 3 different times, respectively.


Next Rename, execute

MV Code.tgz Code1.tgzls-lls-lcls-lu

The results of the operation are as follows:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/80/60/wKiom1c-xGvTU1o3AAA93UH9JcE265.png "title=" 2.png " alt= "Wkiom1c-xgvtu1o3aaa93uh9jce265.png"/>

Can see

After renaming the file,

The result of the-L came out changed (updated time)


Next visit, execute

Vim code1.tgz (after entering Vim, exit and then execute the following command) Ls-lls-lcls-lu

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/80/60/wKiom1c-xfLBpkYWAAA9H318paw641.png "title=" 3.png " alt= "Wkiom1c-xflbpkywaaa9h318paw641.png"/>

Can see

After accessing the file,

The result of-lu has changed (updated time)


Next modify the file, execute

Vim code1.tgz (after entering vim, modify the contents, save and exit, then execute the following command) Ls-lls-lcls-lu

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/80/5E/wKioL1c-yIvR49HBAAA4wtNPPrU066.png "title=" 4.png " alt= "Wkiol1c-yivr49hbaaa4wtnppru066.png"/>

Can see

After the file has been modified,

The results of-L are also changed (updated time)

In fact, three of the time has changed, because the change is also equivalent to the visit



Explain

The above example shows that the files under Linux exist 3 time

They correspond to the following commands:

Ls-lu Atime (access time) access times LS-LC CTime (change time) creation time (inaccurate, renaming or changing the path will also modify that) ls-l Mtime (Modify time) modified




(Find command under Linux: http://zhweizhi.blog.51cto.com/10800691/1775477)

There are three "time" files under Linux

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.