Question
Why does cPanel's interface show inode counts that don't match output from the "find" command?
Answer
cPanel utilizes the "repquota" command to determine how many inodes or files are being used on an account. The find command will often count the same files more than once, depending on the used options.
For example:
find . -type f | wc -l
7380
This number is not the correct number of inodes. You would need to use the below command to find a number close to what "repquota" would report.
Command: "find . -xdev -printf '%i\n' | sort -u | wc -l"
cd /home/testaccount
find . -xdev -printf '%i\n' | sort -u | wc -l
68
Command: "repquota -a |grep testaccount"
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
testaccount -- 1648 0 0 71 0 0
By default, the find command does not try to restrict itself based on the number of inodes. The more efficient way to determine the inodes and account is using is the "repquota" command.