Skip to content

Instantly share code, notes, and snippets.

@jaredmichaelwilliams
Created August 13, 2015 20:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jaredmichaelwilliams/ce73746ded0c29b438dc to your computer and use it in GitHub Desktop.
Save jaredmichaelwilliams/ce73746ded0c29b438dc to your computer and use it in GitHub Desktop.
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