Created
August 24, 2017 08:10
-
-
Save sergiks/5588a63fb06d7c47a39cc2684290535b to your computer and use it in GitHub Desktop.
Useful Linux commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This will dump a list of every directory on the filesystem prefixed with | |
# the number of files (and subdirectories) in that directory. | |
# Thus the directory with the largest number of files will be at the bottom. | |
find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n | |
# Source: https://unix.stackexchange.com/questions/117093/find-where-inodes-are-being-used | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment