5 Ways to Get a User’s Disk Usage

4/5 - (7 votes)

This may seem pretty simple, but I see a lot of questions about how to get a user’s disk space usage on a cPanel user. I put together a quick list of 5 simple ways for the average admin:

 

1) Good ole’ cPanel/WHM. You can see the usage on the left-hand side of cPanel, or in the ‘List Accounts’ view of WHM

 

2) Quota cache:

egrep “^${user} ” /var/cpanel/repquota.cache

3) Actual quota:

quota -v | egrep “^${user} “

4) Manual du:

du -h /home/$user

5) cPanel datastore:

cat /home/$user/.cpanel/datastore/_usr_bin_quota_-v

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Log in