How to Check cPanel Inode Usage

When subscribing to a hosting plan, some providers may set limits on the number of inodes we can use. However, on the statistics page, we can only see the total inode usage for our cPanel hosting.

So, what if we want to check the inode usage for each folder in cPanel? For example, how many inodes is the public_html folder currently using?

Don't worry, here we will discuss how to check the inode usage for every folder in our hosting.

How to Check cPanel Inode Usage

This method only works if our hosting has the Terminal or SSH feature. If our hosting does not support these features, we cannot check the inode usage for each folder and may need to contact the hosting provider.

If the Terminal or SSH feature is active, we can now open the Terminal via cPanel or access SSH using CMD or PuTTY.

After successfully logging into SSH or Terminal, we can then check how many inodes are used in each folder within our home cPanel directory using this command

echo "Detailed Inodes 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"

Since we are checking the detailed inode usage in the homefolder, the results will look something like this

Cara Memeriksa Penggunaan Inode cPanel - 1-1

What if we want to check the inode usage in a specific folder, for example, the inode usage in the public_html?

folder? If you want to check cPanel inode usage in a specific folder, you can open that folder via Terminal and then run the previous command.

For example, to check the inode usage in public_html, the command used is like this

cd public_htmlecho "Detailed Inodes 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"

And after running that command, the results will look something like this

Cara Memeriksa Penggunaan Inode cPanel - 1-2

Conclusion

To check inode usage in detail on cPanelhosting, the key is that the hosting we use must support the SSH feature.

If the hosting being used does not yet support SSH, we can request that the SSH feature be activated by the hosting provider, or ask the hosting provider directly for the total inode usage on our hosting.

Written by

Muhammad Khoirun Nasikin

I enjoy tinkering with WordPress, hosting, VPS, web development, and various small experiments related to websites. I have over 3 years of experience in the web hosting industry.

COMMENTS

Loading...