Home Tips and Instructions Linux & UNIX Finding Your Total Inode Count
Finding Your Total Inode Count PDF Print E-mail
This article explains how to find the total inode count (the total number of inodes in use) for a linux web hosting account.
 
1. First, you will need SSH access to your web hosting account. Many linux hosting companies offer this but for security reasons it is often disabled by default. So you may have to go into your control panel or make a request to your web host to enable it.
 
2. Type the following command at the command prompt: (*Note: The entire command should be on one line.)
for i in `find -type d -maxdepth 1`; do echo -n $i; echo -n " "; find $i | wc -l ; done 
 

3. At first (immediately after running the command) you will see a . Then, after a while, you will see a list that looks something like this:

. 44501

./etc 18

./tmp 89

./mail 751

./public_html 34280

./public_ftp 2

./.htpasswds 1

./.ssh 4

./.trash 9015

The number on the first line is your total number of inodes that are in use.