How to check the number of inodes and disk usage per directory in Hostinger

Check the number of inodes and disk usage per directory in Hostinger with File Manager’s Calculate directory sizes option or SSH commands.

Updated 3 days ago

Check the number of inodes and disk usage per directory in Hostinger with the Calculate directory sizes option in File Manager, or with SSH commands on Premium and higher web hosting plans. Inodes represent the number of files and folders in your hosting plan, and every hosting plan has a fixed storage and inode limit.

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 Dashboard next to the website in question

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

Hostinger panel menu with File Manager highlighted under File

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:

Hostinger toolbar with the Calculate directory sizes button highlighted

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

Hostinger file manager showing public_html directory size and inode counts column highlighted

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

File manager context menu with the Info option highlighted on a selected folder

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:

  1. Connect to your hosting plan 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.
  3. Once you’re in the correct directory, run these commands below.

To check the number of inodes (list sorted in descending order):

find . -printf "%hn" | cut -d/ -f-2 | sort | uniq -c | sort -rn

The result will look similar to this:

Terminal showing inode usage counts per directory, with .domains highlighted as the largest folder

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

du -shc * | sort -rh

The result will look similar to this:

Terminal showing du -shc output with per-directory disk usage and a total line highlighted

Your inode count and disk usage per directory are now visible, so you can find the folders using the most resources. To check inode usage for your whole hosting plan, see How to check resource usage in Hostinger. If the inode count doesn’t drop after you delete files, see Why does the number of inodes stay the same after removing files or folders in Hostinger.