- use
apt install ncdu
or
- Get to the root of your machine by running
cd / - Run
sudo du -h --max-depth=1 | sort -rh - Note which directories are using a lot of disk space.
cdinto one of the big directories.- Run
ls -lto see which files are using a lot of space. Delete any you don’t need. - Repeat steps 2 to 5.