Skip to content

Instantly share code, notes, and snippets.

@gotakk
Created September 23, 2014 07:40
Show Gist options
  • Save gotakk/ea5ccefeabc630cc5c32 to your computer and use it in GitHub Desktop.
Save gotakk/ea5ccefeabc630cc5c32 to your computer and use it in GitHub Desktop.
Based on your issues in installing ncdu my recommendation would be to use du and sort on together.
For instance:
du /home | sort -rn (will search all files/directories under /home and sort them by largest to smallest.
du -h /home | sort -rh (same but will show it in MB/KB/etc) - Note this requires coreutils 7.5 or newer (sort --version to check)
You can replace /home with any directory of your choice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment