Skip to content

Instantly share code, notes, and snippets.

@jonchurch
Last active September 6, 2017 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonchurch/410f40becf7295445a375a7bf599f6b5 to your computer and use it in GitHub Desktop.
Save jonchurch/410f40becf7295445a375a7bf599f6b5 to your computer and use it in GitHub Desktop.
Linux commands for disk space exploration
# list largest files in current dir by descending
du -ch -d 1 | sort -hr
# list files in a certain range
du -ch | grep '[0-5]G'
# common place to start
du -ch /home | grep '[0-9]G'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment