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 2 weeks ago

Check the number of inodes and disk usage per directory in Hostinger in three ways. First, the Resources Usage page lists the folders that use the most disk space and inodes. Second, Hostinger File Manager shows the size of each folder. Third, SSH commands show both values for any folder on Premium and higher web hosting plans, either in the terminal in Hostinger File Manager or in your own SSH client. 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

You can identify the used disk space and the number of inodes per each folder (directory) in your hosting plan by running two SSH commands. Run them in the terminal built into the file manager, or connect with your own SSH client.

To see the folders that use the most disk space and inodes without SSH, check What’s using your storage on the Resources Usage page. See Check which folders use the most disk space and inodes in Hostinger for the steps.

To check disk usage per folder without SSH, open Hostinger File Manager. In Browser view, the Size column shows the size of each file and folder. File Manager doesn’t show inode counts, so use the commands below to check inodes per folder.

Option 1 – Use the terminal in Hostinger File Manager

  1. Navigate to the Websites section.

  2. Hover over the website in question and click Manage site.

  3. Click File Manager on the sidebar.

  4. Click the Terminal icon in the toolbar, or press Ctrl + `. If SSH is turned off, click Turn on SSH when prompted.

  5. The terminal opens in your website’s folder. To check a specific folder, open it with cd, for example cd public_html.

For more details, see How to use the terminal in Hostinger File Manager. Then, run the commands in the section below.

Option 2 – Use an SSH client

  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.

Run the inode and disk usage commands

Once you’re in the correct directory, run the commands below.

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:

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.