Last active
September 2, 2016 13:57
-
-
Save ricardodestro/1551279959cdd0461e0504c28cfa8c02 to your computer and use it in GitHub Desktop.
LINUX COMMANDS
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
# TOP 10 DIRECTORY USAGE | |
du -a -h /usr/local | sort -n -r | head -n 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
COUNT TOP X BY COLUMN
zcat <FILE.gz> | awk -F '\t' '{print $2}' | sort | uniq -c | sort -nr | head -10