Showing posts with label Check inode usage of files in linux. Inode usage details in linux. Show all posts
Showing posts with label Check inode usage of files in linux. Inode usage details in linux. Show all posts

Sunday, December 18, 2011

Check inode usage of all the files

Please use the following script and check the inode usage of all files.

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"