0

I cant find any documentation surround this option in google. I assume it looks for files created within x amount of days? but a quick and precise definition would be appreciated.

  • 3
    Rather than searching Google for this, why not look at the manual on your system? man find will tell you what the option does, with the added bonus that it will be correct for the implementation of find on your system. – Kusalananda May 25 '17 at 16:00
  • Let me guess, did you Google exactly find -mtime? – cutrightjm May 25 '17 at 16:05

1 Answers1

2

From the find manual:

 -mtime n
      File's data was last modified n*24 hours ago.  See the comments for 
      -atime to understand how rounding  affects  the  interpretation  of
      file  modification times.

See also Why does find -mtime +1 only return files older than 2 days? for an explanation of the rounding behavior.

derobert
  • 109,670