5 Ways to Get a User’s Disk Usage

5 Ways to Get a User’s Disk Usage
3.6 (72%) 5 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

 

Don't be selfish, share!Tweet about this on TwitterShare on RedditShare on TumblrBuffer this pageDigg thisShare on FacebookFlattr the authorEmail this to someoneShare on Google+Pin on PinterestPrint this pageShare on LinkedInShare on StumbleUpon

Leave a Reply

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

Log in