Skip to main content
All CollectionsFiles ManagementInodes and Disk Usage
How to Check the Number of Inodes and Disk Usage per Directory
How to Check the Number of Inodes and Disk Usage per Directory

Checking the number of inodes, and disk usage per directory within a hosting plan at Hostinger

Updated over a week ago

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:

  1. Navigate to the Websites section

  2. Click on Manage next to the website in question

  3. Search for File Manager on the sidebar and click on it:

Accessing the file manager in Hostinger

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:

The option to calculate directory sizes in the file manager

In the Size column, you'll be presented with the size of each folder or file and the number of inodes within each folder:

The size and number of inodes shown in the file manager

Alternatively, to see the number of inodes of a single directory, right-click on it, and select Info:

The size and number of inodes shown in the file manager

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:

Checking the number of inodes per directory in a hosting plan via SSH

To check disk usage (list sorted in descending order):

du -shc * | sort -rh

The result will look similar to this:

Checking the size of directories within a hosting plan via SSH

Now you know how to check your inode count and disk usage in detail!

Did this answer your question?