Mtime,cime,atime fog of Linux Find Lookup command

Source: Internet
Author: User

View man Help:


Find-search for files in a directory hierarchy ( [' harɑk] hierarchy, Hierarchy )

Search for files in the directory hierarchy

There are two more plausible explanations in the man Help:


    • -atime N

File was last accessed n*24 hours ago. (Before n*24 hours of file access) when find figures out how many 24-hour period s ago The file was last accessed, any fractional ([' Frk () n () l], partial, fractional) part are ignored, so to Match-ati Me +1, a

File had to be been accessed at least-days ago.

When find calculates the number of 24-hour cycles before the file was last accessed, the fractional part is ignored, so matching-atime + 1 o'clock, a file is accessed at least 2 days in advance.


    • Find $HOME-mtime 0

Search for files in your home directory which has been modified in the last Twenty-four hours. (Searching in your home directory in the previous 2 Files changed over 4 hours)This command works this to because the time since each file were last modified are divided byhours and any remainder are discarded. (This command works because the last modified time for each file is divided by 24 hours, and any remaining part is discarded. ) That means this to Match-mtime 0, a file would haveThe modification in the past which are less than hours ago.(this means that matching-mtime 0, the file must have been changed in the past less than 24 hours ago .) )


You will find that the 1th is really not how to understand, the 2nd example, can illustrate a certain realistic correctness, but still confusing, there is no fundamental unified expression, so can only find resources, see how other netizens explain, and their own at the bottom of the experiment, there is probably a similar rule:

The Mtime example:

Mtime +n: Indicates that there is an elimination zone between the current time, (n+1) *24h, i.e. (current time-(n+1) *24h),-∞

Mtime N: Indicates from (current time-n*24h) (current time-(n+1) *24h)

Mtime-n: Indicates (current time-n*24h)-Current time (+∞)


Borrowed the picture of the Netizen: Thank you, very image 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0017.gif "alt=" J_0017.gif "/>

Original link Address: http://blog.csdn.net/yakoo5/article/details/17709561

650) this.width=650; "Src=" http://img.blog.csdn.net/20131231100346812?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvewfrb281/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Southeast "alt=" Southeast "/>

This article is from the "zcy.gy" blog, make sure to keep this source http://1064187464.blog.51cto.com/9108437/1774283

Mtime,cime,atime fog of Linux Find Lookup command

Related Article

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.