1

I'm trying to find files that have dates within a specific time range (like the last 2 months).

How do I go about doing that?

6

The find command has an -ls argument, which would provide the functionality you desire:

find /path -mtime -60 -ls

Good luck.

  • I noticed that -60 works, but 60 doesn't. Why is that? Since the manual says "-mtime n: File's data was last modified n*24 hours ago." Shouldn't it be 60 (positive)? – Rodrigo Mar 22 at 1:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.