Free up disk space on Ubuntu and Fedora: journal, package cache, old snaps
On Linux, disk space usually disappears in a handful of places the system manages for you — and in ~/.cache, which nobody manages. Start by measuring:
df -h /
sudo du -xsh /var/log /var/cache /var/lib/snapd /var/lib/flatpak ~/.cache 2>/dev/null | sort -h
1. systemd journal 🟢
journalctl --disk-usage
sudo journalctl --vacuum-time=2weeks # or --vacuum-size=500M
To keep it from growing back, set SystemMaxUse=500M in /etc/systemd/journald.conf and run sudo systemctl restart systemd-journald.
2. Package cache 🟢
# Debian/Ubuntu
sudo apt clean # downloaded .deb files
sudo apt autoremove # packages nothing depends on anymore (review the list)
# Fedora/RHEL
sudo dnf clean all
sudo dnf autoremove
3. Old snap revisions 🟢
Snap keeps previous revisions of every snap (two or three by default). List the disabled ones and remove them:
snap list --all | awk '/disabled/{print $1, $3}'
sudo snap remove firefox --revision=1234
# keep only 2 revisions from now on
sudo snap set system refresh.retain=2
4. Flatpak 🟢
flatpak uninstall --unused
5. Your own caches
~/.cache collects browser caches, thumbnails (~/.cache/thumbnails), pip, uv, Puppeteer, Cypress, Hugging Face and more. Most are safe to delete with the app closed; Hugging Face models are big and slow to download again.
du -sh ~/.cache/* 2>/dev/null | sort -h | tail -15
6. Old kernels
On Ubuntu, apt autoremove already removes old kernels and keeps the current and the previous one. Don't remove the kernel you're running (uname -r).
Limpa Tudo on Linux covers the user-level part: ~/.cache, thumbnails, the Trash, browser and app caches, and developer caches (npm, pip, uv, Gradle, Cargo, Go, Maven, Android, Hugging Face). The journal, package caches and snaps (items 1–4) need root and are better handled with the commands above.