[find] Find files modified within the last few minutes

Created on November 30, 2026

Use GNU find's -mmin to select paths by modification time in minutes. This example selects regular files modified less than 10 minutes ago.

mkdir -p sample
touch sample/recent.txt
touch -d '20 minutes ago' sample/old.txt
find sample -type f -mmin -10
sample/recent.txt

-type f restricts the results to regular files. The setup uses GNU touch -d syntax.

Shell command find