Command-line Knowledge Base
Use find
to search for folders/files based on modification date/time
Find files modified N days back
To find all the files which are modified 50 days back.
find / -mtime 50
Find files accessed in last N days
Find all files that were accessed in the last 50 days
find / -atime 50
Find files modified in a range of days
Find all files that were modified between 50 to 100 days ago.
find / -mtime +50 –mtime -100
Find files changed in last N minutes.
Find files modified within the last 1 hour.
find /home/bob -cmin -60
Files modified in last hour
find / -mmin -60
Find Accessed Files in Last 1 Hour
find / -amin -60
NULL