Skip to content

Instantly share code, notes, and snippets.

@muddlebee
Created March 28, 2022 18:05
Show Gist options
  • Save muddlebee/b4f7f3cf4384f8d2ba7916ae6f61dec6 to your computer and use it in GitHub Desktop.
Save muddlebee/b4f7f3cf4384f8d2ba7916ae6f61dec6 to your computer and use it in GitHub Desktop.
To find out where disk space is being used:
1. Get to the root of your machine by running cd /
2. Run sudo du -h --max-depth=1
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.
https://maryrosecook.com/blog/post/freeing-disk-space-on-your-linux-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment