Linux: find files by date range


By modification time:

find /path/to/find -newermt "TIMESTART" -not -newermt "TIMEEND"

Example:

find /home -newermt "2020-06-14 00:00:00" -not -newermt "2020-06-15 00:00:00"

By access time:

find /path/to/find -newerat "TIMESTART" -not -newerat "TIMEEND"

By change time:

find /path/to/find -newerct "TIMESTART" -not -newerct "TIMEEND"

Leave a Reply