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!

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

    Joined:
    Mar 25, 2002
    Messages:
    492
    Likes Received:
    2
    Trophy Points:
    318
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice