Linux Find and Locate Cheat Sheet/Find files accessed more than 30 days ago

Identify stale files.

Section: Find by Size and Time

Find files accessed more than 30 days ago

bash
bash
find . -type f -atime +30

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Find by Size and Time
Find files larger than 100 MB
Search for large files using size filters.
OpenIn sheetbashsame section
Find files modified in last 1 day
Use mtime to find recently modified files.
OpenIn sheetbashsame section
Find files newer than reference file
Compare timestamps using a reference path.
OpenIn sheetbashsame section
Find file by exact name
Search recursively for a specific filename.
OpenIn sheetbash1 tag match
Find world-writable files
Audit overly permissive files.
OpenIn sheetbash1 tag match
Delete old temporary files
Remove matching files directly from find.
OpenIn sheetbash1 tag match