Last active
December 27, 2015 07:59
-
-
Save iamajeesh/7292746 to your computer and use it in GitHub Desktop.
Find The Largest Top 10 Files and Directories On a Linux / UNIX / BSD
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
# For UBUNTU | |
du -a /var | sort -n -r | head -n | |
# CD foldername | |
du -hsx * | sort -rh | head -10 | |
# For CENTOS | |
for i in G M K; do du -ah | grep [0-9]$i | sort -nr -k 1; done | head -n 11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment