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.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
Alex Lorsung
  • 3
  • 1
  • 4
  • 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
  • 107,579
  • 20
  • 231
  • 279
I_GNU_it_all_along
  • 1,702
  • 13
  • 20