Another, more humanist way, is to use -newermt
option which understands human-readable time units (see man find
and search for -newerXY
).
Unlike -mtime
option which requires the user to read find
documentation to figure our what time units -mtime
expects and then having the user to convert its time units into those, which is error-prone and plain user-unfriendly. -mtime
was barely acceptable in 1980s, but in the 21st century -mtime
has the convenience and safety of stone age tools.
Example uses of -newermt
option with the same duration expressed in different human-friendly units:
find /<directory> -newermt "-24 hours" -ls
find /<directory> -newermt "1 day ago" -ls
find /<directory> -newermt "yesterday" -ls