How Do I Find Old Files on Linux?
Contents You Could Start by Saying Find /Var/Dtpdev/Tmp/ -Type F -Mtime +15. This Will Find All Files Older Than 15 Days and Print Their Names. Optionally, You...
You could start by saying find /var/dtpdev/tmp/ -type f -mtime +15 . This will find all files older than 15 days and print their names. Optionally, you can specify -print at the end of the command, but that is the default action.
How do I find files older than 90 days Linux?
The above command will find and display the older files which are older than 30 day in the current working directorys.
…
Find and delete files older than X days in Linux
- dot (.) …
- -mtime – Represents the file modification time and is used to find files older than 30 days.
- -print – Displays the older files.
Must Read
How do I find and delete old files in Linux?
You can use the find command to search all files modified older than X days. And also delete them if required in single command. First of all, list all files older than 30 days under /opt/backup directory.