Skip to content

Instantly share code, notes, and snippets.

@khandar-william
Last active August 30, 2020 05:30
Show Gist options
  • Save khandar-william/3e3592c4c760d5e5089af6811e9d3225 to your computer and use it in GitHub Desktop.
Save khandar-william/3e3592c4c760d5e5089af6811e9d3225 to your computer and use it in GitHub Desktop.

To find out where disk space is being used:

  1. use apt install ncdu

or

  1. Get to the root of your machine by running cd /
  2. Run sudo du -h --max-depth=1 | sort -rh
  3. Note which directories are using a lot of disk space.
  4. cd into one of the big directories.
  5. Run ls -l to see which files are using a lot of space. Delete any you don’t need.
  6. Repeat steps 2 to 5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment