Skip to content

Instantly share code, notes, and snippets.

@epcim
Created October 20, 2015 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epcim/d6a14cc68d7db2a7a4e6 to your computer and use it in GitHub Desktop.
Save epcim/d6a14cc68d7db2a7a4e6 to your computer and use it in GitHub Desktop.

Bash script: check used inodes

    find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n

    du --inodes -S | sort -rh | sed -n \
            '1,50{/^.\{71\}/s/^\(.\{30\}\).*\(.\{37\}\)$/\1...\2/;p}'

    du --inodes -xS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment