How Do I Remove Old Files from a Folder in Linux?
Contents How Do I Delete Old Files in Linux? the Find Utility on Linux Allows You to Pass in a Bunch of Interesting Arguments, Including One to Execute Another...
Contents
How do I delete old files in Linux?
The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them.
Must Read
How do I find and delete older 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.