Created
April 12, 2023 12:52
-
-
Save jabbalaci/f60fa6cdba073c4239db2b5317f31833 to your computer and use it in GitHub Desktop.
top10dirs and top10files
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
# Add the following lines to the end of your ~/.bashrc file: | |
alias top10dirs='(du -h --max-depth=1) 2> /dev/null | sort -hr | head -n 10' | |
alias top10files='find . -type f -print0 | du -h --files0-from=- | sort -hr | head -n 10' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment