Skip to content

Instantly share code, notes, and snippets.

@jabbalaci
Created April 12, 2023 12:52
Show Gist options
  • Save jabbalaci/f60fa6cdba073c4239db2b5317f31833 to your computer and use it in GitHub Desktop.
Save jabbalaci/f60fa6cdba073c4239db2b5317f31833 to your computer and use it in GitHub Desktop.
top10dirs and top10files
# 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