Created
August 13, 2015 20:39
-
-
Save jaredmichaelwilliams/ce73746ded0c29b438dc to your computer and use it in GitHub Desktop.
Get iNodes list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
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) ; echo -e "$c\t\t- $d\n" ; done | sort -n ; echo -e "Total: \t\t$(find $(pwd) | wc -l)\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment