brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: find -newermt gives you the files changed between two dates

Find
~/tips/tip-find-newermt-date-range

find . -type f -newermt '2026-11-01' ! -newermt '2026-11-08'

Lists the files modified inside a date range, without a reference file.

Sometimes the question is what changed in one particular week. -newermt takes a date directly.

find . -type f -newermt '2026-11-01' ! -newermt '2026-11-08'

-newermt DATE matches files modified after that date. Negating a second one with ! sets the upper limit, so this example covers one week. The date can also include a time, such as '2026-11-01 14:30'. Use -newermt together with -type f so folders, whose times change whenever a file is added, do not clutter the list.

Further reading: find manual page

More Find tips find / -maxdepth 1 -fstype proc find /backup -name '*.gz' ! -exec gzip -t {} \; -print 2>/dev/null find /srv/downloads -type f -size +100M -size -1G -exec ls -lh {} + find /srv/data -depth -print find /srv -xdev -samefile /srv/downloads/movie.mkv All Find tips (46) All topics

Link