Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by spaceman, Oct 21, 2005.

  1. spaceman

    spaceman Well-Known Member

    Mar 25, 2002
    Likes Received:
    Trophy Points:
    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.

Share This Page