Created
December 23, 2020 06:10
-
-
Save ryanmaclean/2bb517055d9f6d1ef3d7609a5b7d9acd to your computer and use it in GitHub Desktop.
du top ten inodes and disk space
This file contains 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
#!/usr/bin/env bash | |
set -euox pipefail | |
# Disk utilization for files and inodes | |
# to use: | |
# `./du10.sh` | |
# Top ten inodes, queue depth 1 | |
du -ad 1 --inodes . | sort -rn | head -10 | |
# Top ten foldes/files by size in human-readable units (K/M/G/T) | |
du -hsx * | sort -rn | head -10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment