Skip to content

Instantly share code, notes, and snippets.

@chluehr
Created June 24, 2015 09:03
Show Gist options
  • Save chluehr/3730b6f63a2d39a07845 to your computer and use it in GitHub Desktop.
Save chluehr/3730b6f63a2d39a07845 to your computer and use it in GitHub Desktop.
Finds where all your inodes are being used ..
#!/bin/bash
# see: http://unix.stackexchange.com/questions/117093/find-where-inodes-are-being-used
# show inode usage:
df -i
# find where all those files are (roughly) - starts at /
find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment