Inode usage for current working directory
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"
Use cd ~ to change pwd to current user home
cd ~
Reference:
Magesh from 2daygeek : https://www.2daygeek.com/linux-check-count-inode-usage/
Leave a Reply