Find files by file size in linux

By | July 22, 2009

The following command searches for files over 20mb all over your hard disk

You can search a specific directory by specifying a directory such as find /var/www and the size can be modified by increasing or decreasing the +20000k

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.