Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Get iNodes list
#!/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