Skip to content
Hosting2 min read

What are inodes in web hosting?

Short answer

An inode is the record a Linux file system keeps for every file and folder, so the number of inodes in your account roughly equals its number of files and folders. Many hosts cap the inode count as well as disk space.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. How inodes are counted
  2. How to find what’s using them
  3. The usual inode hogs
  4. Common confusions
  5. On ArabyHost

An inode (index node) is an ID card for a file. The system stores the file’s owner, permissions, size, timestamps and where its data sits on disk. The file’s name is stored in the folder that contains it, not in the inode itself.

How inodes are counted

  • Every file is one inode and every folder is one inode, whatever the size.
  • So two accounts can use the same space and have wildly different inode counts.

Example: two accounts each use 2 GB. The first holds a few hundred videos; the second holds hundreds of thousands of tiny cache files. The second may hit its inode limit while the first is nowhere near.

How to find what’s using them

cPanel shows your file count (File Usage) in its statistics sidebar. With SSH, these commands reveal the folders with the most files:

# total files and folders in the account
find ~ | wc -l

# folders using the most inodes
du --inodes -s ~/* ~/.[!.]* 2>/dev/null | sort -n | tail

The usual inode hogs

  • Cache folders from WordPress plugins, such as wp-content/cache.
  • Old email and Spam or Trash folders that are never emptied.
  • Stale session files left behind by PHP apps.
  • node_modules in Node.js projects, often tens of thousands of files.
  • Extracted backups unpacked once and forgotten in the account.

Common confusions

  • Inodes aren’t disk space: you can run out with gigabytes still free. Read about disk space.
  • Deleting in the File Manager sometimes moves files to the trash; empty it so the count actually drops.
  • If you’ve hit the limit, follow the steps in inode limit reached.

On ArabyHost

Every ArabyHost account has its own limits, and each plan’s are listed on the pricing page. On AI/Developer plans you can run the commands above over SSH jailed in CageFS; on other plans use Disk Usage and the File Manager in cPanel, opened from the Araby Panel. If your site uses LiteSpeed Cache, purge old cache from the plugin’s dashboard rather than deleting files by hand.

FAQ

Does a large file use more inodes than a small one?

No. Every file uses one inode regardless of size: a 1 KB text file and a 1 GB video each count once.

Do email messages count as inodes?

Yes. cPanel stores mail in Maildir format, where every message is a separate file. A mailbox with tens of thousands of messages uses tens of thousands of inodes.

What happens when I hit the inode limit?

The account can't create new files, so image uploads, plugin updates and cache files fail, and incoming email may stop.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.