Linux File Time Explanation ctime mtime atime, mtimeatime
Linux system files have three main time attributes: ctime (change time), atime (access time), and mtime (modify time ). These three times are very confusing. Be sure to distinguish them from
Atime:access time when the file (read or executed) or directory was last accessedMtime:modofy time when the file (content) or directory (content) was last modifiedCtime:change time when the file (property) or directory (property) was last changed
This article was reproduced from: http://blog.csdn.net/doiido/article/details/43792561Linux system files have three main time attributes, CTime (change times), Atime (Access Time), Mtime (Modify). These three time is easy to confuse, ready to learn
Linux system files have three main time attributes, CTime (change times), Atime (Access Time), Mtime (Modify). These three time is easy to confuse, ready to learn more about Linux children's shoes please distinguish between the threeatime:access
In fact, I don't want to talk about this content separately, but some friends may not quite understand these three times, so I will study it with you. In Linux, there are three recording methods for file Time: mtime (modificationtime...
In fact, I
We know that everything in Linux is file, so can we see when a file was created? The answer is in the negative. So can we get some information about the time? That will have to say three times the state of the file, they are-atime,-ctime and-mtime.
Touch Testtime1, stat testtime "for file name" can see this file name of the three states2, ll Testtime;ll--time=atime testtime; ll--time=ctime Testtime-rw-r--r--. 1 root root 0 Sep 19:28 testtime-rw-r--r--. 1 root root 0 Sep 19:28 testtime-rw-r--r--
Linux CTime refers to change time, atime refers to accesstime,mtime refers to modify time (meaning change)Mtime and CTime The difference is that only modify the contents of the file to update the file's mtime, and rename the file, modify the
The meaning of-atime,-ctime,-mtime under LinuxWe are often asked in forums or groups, how to view the creation date of a file under Linux or Unix?It's often said that with the Find command plus option-ctime, the-ctime here is not the create time,
There are often cases where the file's time attribute is used, and there are three file-related time attributes under Linux. Atime,ctime,mtime. I also often confused, each encounter will be human flesh search, leisure time to prepare this knowledge
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.