To find the largest files in a directory, run the following:
# du -a /var/www/vhosts | sort -n -r | head -n 10
or
Find the largest files from the root directory:
find / -type f -size +200000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
Linux, Windows, Software Tips, Articles and Hacks
To find the largest files in a directory, run the following:
# du -a /var/www/vhosts | sort -n -r | head -n 10
or
Find the largest files from the root directory:
find / -type f -size +200000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'