Skip to content

Instantly share code, notes, and snippets.

@faceleg
Created July 22, 2017 09:02
Show Gist options
  • Save faceleg/fc16fdcfd5beae68ce9a8cf9eb2b4a02 to your computer and use it in GitHub Desktop.
Save faceleg/fc16fdcfd5beae68ce9a8cf9eb2b4a02 to your computer and use it in GitHub Desktop.
Find and display largest directories linux
for X in $(du -s * | sort -nr | cut -f 2); do du -hs $X ; done | head -n 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment