The difference between CTime mtime atime file time in Linux

Source: Internet
Author: User

The Linux system has three important file times.

respectively: Ctime,atime,mtime.


1.ctime (change time) is written to a file that changes with the owner, permission, and so on, that is, when the state of the file was last changed. (Index node change)


2.atime (Access time) is changed when the file is read or executed, or when the file was last read.


3.mtime (Modify time): When the file is written with changes to the contents of the file, it can be understood that the file content was last modified.



View Atime, CTime, mtime commands for a file

LS-LC filename//File CTime

Ls-lu filename//File Atime

ls-l filename//File Mtime


You can also change these three times with touch.

You can use stat to view these three times.


The difference between CTime mtime atime file time in Linux


original link:http://10324470.blog.51cto.com/10314470/1775847


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.