-mtime nTo delete files that are older than 6 months, we can use:
File's data was last modified n*24 hours ago. See the comments for -atime
to understand how rounding affects the inter‐pretation of file modification times.
$ find . -type f -mtime +180 | xargs rmOr alternatively:
$ find . -type f -mtime +180 -exec rm {} \;
No comments:
Post a Comment