Saturday, April 24, 2010

find all files over a certain size

cd /
find / -type f -size +10000k -exec ls -lh {} \; | awk '{ print $5 ": " $9 }' |sort -n | mail -s "files over 10000k" cschwieterman@xxxxxxxxxxxxx.com

cd /
find / -type f -size +50000k -exec ls -lh {} \; | awk '{ print $5 ": " $9 }' |sort -n


Change the 10000k or 50000k to the size you need.

No comments: