Find files that were created, modified or accessed in the last N minutes
Find all files in $my_folder that their status changed in the last 60 minutes
find $my_folder -cmin -60
Find all files in $my_folder that their data were modified in the last 60 minutes
find $my_folder -mmin -60
Find all files in $my_folder that they were accessed in the last 60 minutes
find $my_folder -amin -60
Please remember to use negative values for the minutes. e.g. use -60 and not 60.
More examples
Find all files in $my_folder that their status changed in the last 60 minutes AND they were accessed in the last 10 minutes
find $my_folder -cmin -60 -amin -10
Find all files in $my_folder that their status changed in the last 60 minutes OR they were accessed in the last 10 minutes
find $my_folder \( -cmin -60 -o -amin -10 \)
Notes on find command
-cmin nMatches files which their status was last changednminutes ago.-mmin nMatches files which which data was last modifiednminutes ago.-amin nMatches files which they were last accessednminutes ago.-ois the logical Or operator. The second expression is not evaluated if the first expression is true.


