Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Script for inode usage in Linux server  (Read 2862 times)

0 Members and 1 Guest are viewing this topic.

vinodt

  • Guest
Script for inode usage in Linux server
« 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