Here is how to get a user’s disk space usage on a cPanel user:
WHM
You can see the usage on the left-hand side of cPanel, or in the ‘List Accounts’ view of WHM:

du:
du -h /home/$user
Quota cache:
egrep "^${user} " /var/cpanel/repquota.cache
Actual quota:
quota -v | egrep "^${user} "
cPanel datastore:
cat /home/$user/.cpanel/datastore/_usr_bin_quota_-v


![node[175421]: pthread_create: Resource temporarily unavailable 2023 08 28 12 15 - node[175421]: pthread_create: Resource temporarily unavailable](https://i0.wp.com/administrator.pejcic.rs/wp-content/uploads/2023/08/2023-08-28_12-15.png?resize=344%2C194&ssl=1)
