Total inode count for a particular user in linux

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/


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *