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.

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:
    6
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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
     
  3. secureID

    secureID Well-Known Member

    Joined:
    Mar 11, 2004
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    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:
    6
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Not that I'm aware of using just du.
     
  6. MMarko

    MMarko Well-Known Member

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

    Code:
    du -h -S -max-depth=1 > result.txt
    and then check result.txt file.
     
Loading...

Share This Page