Admin-Ahead Community

Linux => General Linux => Topic started by: vinodt on October 30, 2013, 07:24:39 am

Title: Script for inode usage in Linux server
Post by: vinodt on October 30, 2013, 07:24:39 am
1.Script for Inode usage details:

By using this script we can find out the Inode usage details in the server
=====================================================
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"
========================================================================



Regards,

Vinod T K