how to find the no of inodes used on a specific folder

how to find the no of inodes used on a specific folder

it is very easy to count the no of inodes used folder wise using the below command.

This command in plan text below just copy and paste in on the specific folder

echo “Detailed 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”

You will get the result as below.

Comments