Find mtime Problems

Source: Internet
Author: User
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 last modified is divided by 24 hours and any remainder is discarded. that means
That to match-mtime 0, a file will have to have a modification in the past which is less than 24 hours ago.

Find $ path-mtime + n search for files modified N days away from the current time

For example, n = 2 find $ path-mtime + 2

The current time is, that is, the distance from the current time) find $ path-mtime + 2 starting two days ago indicates that all the files modified before 11-07 will be searched out, and it will go over earlier, for example, refer to the time-lapse pictures of laruence.

Find $ path-mtime-n search for files modified within n days from the current time

For example, if n = 2 find $ path-mtime-2, the distance from the current time) find $ path-mtime + 2 starting two days ago indicates that all the files modified within 11-07 will be searched out.

Find $ path-mtime n query objects modified within 24 hours before the current time n days

For example, the current time of N = 2 is, and the time for pushing forward 2 days is. Therefore, the time is ~ Files modified within, January 8, will be searched out.

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.