Find Recent Files With -newermt

Match files modified after an absolute date for cleanup or auditing.

LinuxsearchFilesfindLow risk
Run find . -type f -newermt '2026-01-01' to list files changed since that date.

01Command

Command
$ find . -type f -newermt '2026-01-01' -name '*.log'

02What it does

-newermt accepts an actual date instead of the awkward -mtime day counts, making time-based searches readable and precise. This is the building block for scheduled log rotation, stale-file reports and incremental processing, all driven from scripts.

03Risk

RiskLow risk
RequirementsPreinstalled on Linux (GNU findutils)
!Warning: Timestamp tests use file modification time and can be fooled by tools that rewrite metadata; combine with other predicates.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-10-13 · Category: Files & Folders

06Related solutions