Inodes represent the number of files and folders you have in your hosting plan. Every hosting plan comes with a dedicated amount of storage space and inodes.
To check the number of inodes within the whole hosting plan, refer here: How to Check Resources Usage 💡
Checking the Used Disk Space and the Number of Inodes per Directory
There are two options to quickly identify the used disk space and the number of inodes per each folder (directory) in your hosting plan: using the file manager or SSH 👇
Via the File Manager
To check the number of inodes and disk usage per folder in the file manager:
Navigate to the Websites section
Click on Manage next to the website in question
Search for File Manager on the sidebar and click on it:
Open the folder the usage of which you wish to check (for example, public_html), and click on Calculate directory sizes in the top right corner:
In the Size column, you'll be presented with the size of each folder or file and the number of inodes within each folder:
Alternatively, to see the number of inodes of a single directory, right-click on it, and select Info:
In the pop-up, click on Show next to Size, and you'll be presented with the size of the folder and the number of inodes within.
Via SSH
If you have a Premium Web hosting plan or above, you may also check the number of inodes and disk usage per folder via SSH:
2. Make sure you are in the correct directory (for example, public_html). To do this, run the command ls
. If you're in a different directory, use ls
and cd
commands one by one. Learn more: Basic SSH Commands That You Should Know About
For most sites, the path will look like this:
cd domains
cd domain.tld
cd public_html
Make sure to replace domain.tld with your actual domain name 💡
2. Once you're in the correct directory, run these commands 👇
To check the number of inodes (list sorted in descending order):
find . -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn
The result will look similar to this:
To check disk usage (list sorted in descending order):
du -shc * | sort -rh
The result will look similar to this:
Now you know how to check your inode count and disk usage in detail!