Question: How Do I Uninstall Older Than 30 Days in Linux?
Contents How Do I Delete a 3 Month File in Linux? You Can Either Use the -Delete Parameter to Immediately Let Find Delete the Files, or You Can Let Any...
Contents
How do I delete a 3 month file in Linux?
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. The latter is slightly more complex, but offers more flexibility if want to copy them to a temp directory instead of deleting.
Must Read
How do I delete files older than 7 days UNIX?
Explanation:
- find : the unix command for finding files/directories/links and etc.
- /path/to/ : the directory to start your search in.
- -type f : only find files.
- -name ‘*. …
- -mtime +7 : only consider the ones with modification time older than 7 days.
- -execdir …
24 февр. 2015 г.