Mtime/ctime/atime three time analysis and difference summary document

Source: Internet
Author: User

# #mtime/ctime/atime Parsing

Mtime--modify Time

# #只有修改文件内容才会改变mtime时间. Modifying the contents of a file will also change the CTime

CTime--change Time

# #改变时间, as long as you modify the contents of the file, the file name, the attributes (owner, group, permissions, etc.) will change CTime

Atime--access Time

# #查看文件内容, that will change the file atime, through cat/vi/vim/more/less ...


# #mtimeand theCTimethe Difference

- Only if the contents of the file are modified, the mtime of the file will be updated;

- Rename the file, modify the properties of the file, etc., will only update CTime;

- as long as you modify the contents of the file, Mtime and CTime will change.


# #查看文件的三个时间
L-l filename Displays the modified time of the file MTIMELS-LC filename Displays the file's Ctimels-la filename display file atimestat filename simultaneously displays the text Pieces of three time atime/mtime/ctime
# #touchChange three time
Touch FileName # #摸一下, that is, change the timestamp of the file, Atime/mtime/ctime simultaneously modify


Mtime/ctime/atime three time analysis and difference summary document

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.