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
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.
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
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 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
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 Mtime parameter should be understood as follows:-mtime N to find the file according to the file change time, n is an integer.n means that the file change time distance is n days, and-n means that the file change time distance is less than n days,
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
I will keep "changing the series all the time" until I leave the company and change it.
At work today, I want to write a script to delete files that are not 7 days away.
Use Find-name "[0-9] [0-9] [0-9] [0-9]"-type D-mtime + 7 | RM-RF {}/
I learned how to get started every day. Yesterday I cheated on the book "unix Super tool" from mmmmn and understood a problem that I had been puzzled for many years. Now I want to share it with you.
When you talk to skilled UNIX users, you often
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
-Mtime N: Find the file based on the change time of the file, and N is an integer.N indicates that the file change time is n days,-N indicates that the file change time is less than N days, and + N indicates that the file change time is earlier than
When you talk to skilled Unix users, you often hear them arrogant about the term "ChangeTime) "and" modification time )". For many (and many dictionaries), changes and modifications are the same. What is the difference here?
The difference between
CTime refers to the change time.Mtime refers to modify time.The difference between Mtime and CTime is that only if the contents of the file are modified, the mtime of the file will be updated, and the renaming of the file and the owner of the
The use of this parameter for Find-mtime has more pits, which is recorded here today:
The Mtime parameter should be understood as follows:-mtime N to find the file according to the file change time, n is an integer.
n indicates a file change
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,
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.