Skip to content

Instantly share code, notes, and snippets.

@ajayverghese
Created February 14, 2013 21:24
Show Gist options
  • Save ajayverghese/4956540 to your computer and use it in GitHub Desktop.
Save ajayverghese/4956540 to your computer and use it in GitHub Desktop.
get inode usage
#!/bin/sh
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment