Find Current Inode Usage Using SSH

Need to find out how many inodes each user is using on your cPanel server?

Simply run the following command from SSH:

 

cd /home

echo "Inode usage for: $(pwd)" ; for d in `find -maxdepth 1 -type d |cut -d\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; printf "$c\t\t- $d\n" ; done ; printf "Total: \t\t$(find $(pwd) | wc -l)\n"

 

The above command will create a list of users and their current inode usage. The list can be long depending on how many users you have.