Sep 18, 2011

Linux: Find file by size


find -type f -size +200 -exec gzip -q{}\;
or
find PATH -type f -size +100000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’


Reference:
Find files larger than size x
a-bash-script-to-find-large-files-on-a-linux-server

No comments: