How To Find specific file sizes using the “find” command

Below is the “find”command that looks for specific files in the “home” directory. The following script is finding files that are 500000k or larger

find /home -type f -size +500000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’
The previous command will output a similar result like the following.

/home/userna5/public_html/error_log: 514M
/home/userna5/backup-userna5.tar.gz: 738M


eLite Server Management

We Specialize In cPanel Server Management
Affordable 24/7 Technical Support Company