How do I delete files older than 7 days UNIX?
Answer
The typical actions to do this are:
Answer
The typical actions to do this are:
- -exec rm -f {} ; (or, equivalently, -exec rm -f {} ‘;’ ) This will run rm -f on each file; e.g., …
- -exec rm -f {} + This will run rm -f on many files at once; e.g., …
- -delete. This tells find itself to delete the files, without running rm .