Ubuntu Free Space

  • March 25, 2023
  • 1 min read

disk usage

df -h

Sor folders by size

sudo du -hsx /* | sort -rh | head -n 40

Then you can start again from another folder:

sudo du -hsx /home/* | sort -rh | head -n 35

Docker

docker system prune
docker system prune -a
docker volume rm $(docker volume ls -qf dangling=true)