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!

Disk Usage by Account/Folder

Discussion in 'General Discussion' started by secureID, Aug 16, 2005.

  1. secureID

    secureID Well-Known Member

    Joined:
    Mar 11, 2004
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    156
    Is there any report in WHM/cPanel that shows a list of disk usage by folder and by account? I need a good way to monitor where the disk usage is going. Thx.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    There's the Disk Usage viewer which you can use within a cPanel account. But from a server perspective you'll have to us du from the root shell. So, for a report of all accounts in /home you could use:

    du -h --max-depth=1 /home
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. secureID

    secureID Well-Known Member

    Joined:
    Mar 11, 2004
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    156
    Hey thanks Chripy :)

    I am aware of the individual cPanel Disk Usage stat but I didn't want to login to each account.

    As for the du command...that is very useful. I can live with it for sure. I figured out the depth parm and that is very useful..
    Thanks again for helping.
     
  4. secureID

    secureID Well-Known Member

    Joined:
    Mar 11, 2004
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    156
    Do you know if there is a way to do a descending sort on the results?
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Not that I'm aware of using just du.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. MMarko

    MMarko Well-Known Member

    Joined:
    Apr 18, 2005
    Messages:
    316
    Likes Received:
    0
    Trophy Points:
    166
    If you can't see result try this

    Code:
    du -h -S -max-depth=1 > result.txt
    and then check result.txt file.
     
    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