Best Answer: How Do I Delete a 3 Month File in Linux?
Contents How Do I Remove 1 Month Files from Linux? How to Delete Files Older Than 30 Days in Linux Delete Files Older Than 30 Days. You Can Use the Find...
Contents
How do I remove 1 month files from Linux?
How to Delete Files Older than 30 days in Linux
- Delete Files older Than 30 Days. You can use the find command to search all files modified older than X days. …
- Delete Files with Specific Extension. Instead of deleting all files, you can also add more filters to find command. …
- Delete Old Directory Recursively.
How do I delete files older than 180 days Linux?
As before, the -mtime parameter is used to find files older than X. In this case, it’s older than 180 days. You can either use the -delete parameter to immediately let find delete the files, or you can let any arbitrary command be executed ( -exec ) on the found files.