Listing largest files on a hosting account, ordered by size, largest first.


Well-Known Member
Mar 25, 2002
Hi All,

Sometimes it can be really hard - and really useful - to determine where storage space is being used up on a hosting account. A really easy way to help work this out is to run this command on a hosting account (where the hosting account name in this example is called 'ventura'):

find /home/ventura/ -type f -printf '%s %p \n' | sort -rn | less | more

This will search all files in the 'ventura' hosting account (incl. all sub folders, sub sub folders, etc.), and output a list of files ordered by size, biggest first.

For what it's worth, I've just added this as an enhancement request to bugzilla.cpanel in the hope that this command or similar could be included within WHM.