Find files older than X days
linux find files older than 30 days | find old backup files | list files not modified recently | find old log files | find | cleanup | mtimefind /var/www/vhosts/example.com -type f -mtime +30 -printf '%TY-%Tm-%Td %p\n' | sort | head -100Shows files whose last modification is older than the given number of days, with their modification date and sorted chronologically. A good preview before cleaning up old backups or logs. Output is limited to 100 lines.
Note: For the total count, run the same search without -printf and append | wc -l.
Also searched as
- linux find files older than 30 days
- find old backup files
- list files not modified recently
- find old log files