Steps to check inode limit with command line

kumkumsharma

Administrator
Staff member
An inode count is an total number of files or directories in an account has. In inode count emails and files are also included; if you want to know the limit of inode count for your account then you can check further.
  • Login to server via SSH.
  • First male sure you are in home directory and for that you can use below command:
Code:
Cd ~
  • Now its time to know the inode limit of your account with below command:
Code:
find . | wc –l
Sometimes, this command can take time if you have too many files and folders in your account.
  • To know the inode usage for individual directories, you can use below command.
Code:
echo "Inode usage for $(pwd)" ; for d in `find -maxdepth 1 -type d | cut -d\/ -f2 | grep -xv . | sort`; do c=$(find $d | wc -l) ; printf "$c\t\t- $d\n" ; done ; printf "Total: \t\t$(find $(pwd) | wc -l)\n"
 
Top