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.
Atime, ctime and mtime, atime, ctimemtime
1. atime, ctime, and mtime
Atime refers to access time, that isTime when the file is read or executed(Modifying the file does not change the access time ).
Ctime is change time,File status change timeThe
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
When the Find command is used with atime/ctime/mtime, find is a frequently used Maintenance Command on aix/linux, but time-based search is often used. This article mainly introduces the parameters for finding with atime, ctime, and mtime. Www.2cto.
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,
Find command:atime, Mtime, CTime differences:Atime refers to access time, that is, when a file is read or executed, and the modification of a file does not change access times.CTime is the change time file state changes, refers to the file I node
View man Help:Find-search for files in a directory hierarchy ( [' harɑk] hierarchy, Hierarchy )Search for files in the directory hierarchyThere are two more plausible explanations in the man Help:
-atime N
File was last accessed n*24
Guessing the man handbook should have these three-time instructions, so try man atime, and man st_atime have no relevant documentation. After
To think of stat can see the file of these three time, use the man stat lookup, although there are
Original link http://www.jb51.net/os/RedHat/1307.htmlThe Linux Find command searches the directory structure for files and performs the specified actions. The Linux Find command provides quite a lot of search criteria and is powerful. Because find
The Linux Find command searches the directory structure for files and performs the specified actions. The Linux Find command provides quite a lot of search criteria and is powerful. Because find has powerful features, it has a lot of options, most
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.