regionalidx.com

Delete Files Larger/Older

  • PDF

Find files larger than 1MB:
find ./rmlsfl_property_residential -type f -size +1M

Delete files larger than 1MB:
find ./rmlsfl_property_residential -type f -size +1M -exec rm -f {} \;

Find files older than 180 days:
find ./directory-name-here -type f -mtime +180

Find files older than 180 days:
find ./directory-name-here -type f -mtime +180 -exec rm -f {} \;

Last Updated on Monday, 15 March 2021

You are here Blog Delete Files Larger/Older