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
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
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
Find $ path-mtime 0: Search for files modified within 24 hours from the current time
Search for files in your home directory which have been modified in the last twenty-four hours. this command works this way because the time since each file was
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
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.
First, you can use the STAT command to query the inode information of a file, including ctime atime mtime.
1. easy understanding of files:
The access time of the file. atime is any access to inode that is changed when the file is read or
Simulation Scenario:In a directory, there are a large number of files generated in different days, and the name of the file does not have a date identification, how to divide the files by date into different folders.According to the date the file
In the Linux operating system, each file has a lot of time parameters, of which three are compared to the main, respectively, Ctime,atime,mtimeAtime last access time, such as LS, more etc, but chmod, chown, LS, stat, etc. will not be modified for
Read a lot of articles are basically reproduced the party's works to review all the information and hands-on test on the basis of a brief summaryYou can first use the STAT command to query the file's inode information, including CTime Atime mtime1.
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.