How to Fix Low Disk Space on Linux
Running low on Linux disk space? Kudu can remove caches, logs, and temporary files to free storage.
By Kudu Team
Fix this automatically with Kudu
Run a free system scan to detect and resolve this issue automatically — no manual steps required.
Download Kudu Free →What Causes This?
Low disk space on Linux usually happens when temporary files, package caches, old logs, and unused downloads build up over time. Large applications, old kernels, container images, and forgotten files in the home folder can also take up a lot of storage. On smaller SSDs or virtual machines, even normal system updates can quickly push the drive close to full.
Common Symptoms
- You see “No space left on device” errors
- Apps fail to install, update, or save files
- System updates stop partway through
- The PC becomes slow or unstable
- Large files cannot be copied or downloaded
How to Fix It Manually
-
Check which disk is full.
- Open a terminal.
- Run:
df -h - Look for the partition that is near 100% usage, usually
/.
-
Find large folders.
- In the terminal, run:
sudo du -sh /* 2>/dev/null - If your home folder may be the problem, also run:
du -sh ~/* 2>/dev/null - This helps you spot folders like
/var,/home, or/usrusing the most space.
- In the terminal, run:
-
Clear the package manager cache.
- On Debian, Ubuntu, or Linux Mint, run:
sudo apt clean - Remove unused packages:
sudo apt autoremove -y - On Fedora, run:
sudo dnf clean all - On Arch Linux, run:
sudo pacman -Sc
- On Debian, Ubuntu, or Linux Mint, run:
-
Remove old logs and temporary files.
- Clear systemd journal logs older than a few days:
sudo journalctl --vacuum-time=7d - Remove temporary files:
sudo rm -rf /tmp/* - Be careful with
rm -rfand make sure the path is correct before pressing Enter.
- Clear systemd journal logs older than a few days:
-
Delete unused files in your home folder.
- Open your file manager.
- Check Downloads, Videos, and the Trash for large files you no longer need.
- If you use Flatpak, remove unused runtimes:
flatpak uninstall --unused - If you use Docker, clean unused images and containers:
Only do this if you understand that unused images and stopped containers will be removed.docker system prune -a
-
Remove old kernels if your distro keeps them.
- On Ubuntu-based systems,
sudo apt autoremove -yoften removes old kernels automatically. - Reboot after cleanup, then run:
df -h - Confirm that free space has increased.
- On Ubuntu-based systems,
Fix It Automatically with Kudu
If you do not want to hunt through caches, logs, temp folders, and leftover app files by hand, Kudu can do the cleanup for you automatically. It scans for storage waste, identifies safe-to-remove junk, and helps free disk space quickly without digging through terminal commands.
Fix this automatically with Kudu
Run a free system scan to detect and resolve this issue automatically — no manual steps required.
Download Kudu Free →Related guides
How to Fix Low Disk Space on Windows
Running low on disk space? Kudu can remove junk files, caches, and leftovers to free up storage on Windows.
Why Is Cache Taking So Much Space on Linux
Find out why cache keeps growing on Linux and how Kudu can safely remove unnecessary cached files.
Why Is Docker Taking So Much Space on Linux
If Docker is filling your Linux disk, Kudu can help clean cache and temporary container-related clutter.
Why Are Logs Filling Up My Disk on Linux
If Linux logs keep filling your disk, Kudu can help clean old log files and reclaim storage.