About how to use the mtime parameter in the find command ~

Source: Internet
Author: User


-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 N days.
For example:

-Mtime-1 indicates the file modification time is less than one day, that is, the file within one day (24 hours) from the current time

-Mtime 0 indicates a file whose modification time is less than one day (24 hours) from the current time.
-Mtime 1 indicates a file whose modification time is one day, that is, a file whose modification time is one day (24 hours-48 hours.
-Mtime + 1 indicates that the file modification time is greater than one day, that is, files other than the current time two days (48 hours)
Why does-mtime + 1 indicate that the file modification time is greater than one day, that is, the file 48 hours away from the current time, instead of 24 hours away?
Because the N value can only be an integer, that is, the nearest integer greater than 1 is 2, all-mtime + 1 is not greater than 1 day (24 hours) than the current time ), it is more than 2 days (48 hours) than the current time ).

About how to use the mtime parameter in the find command ~

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.