I’ve never had enough storage. Although this is partly an occupational hazard, it’s also the nature of Linux. It doesn’t aggressively clean up after itself. After several months, you may start running out of storage. Buying external storage or paying for cloud storage can be a solution. However, not everyone can afford this route, and most storage problems can be fixed without spending money.
Over the years, I’ve discovered the best free solutions for when you are running out of storage on Linux. Several of them are effective because they are repeatable processes rather than one-time fixes. They go beyond simply deleting files to understanding what actually takes up space.
Audit your drive before deleting anything
Table of Contents
Stop guessing and let Linux show you the real space hogs
Your worst course of action is to instantly start deleting files or programs because you get a low disk space warning. In my experience, deleting several small things rarely fixes Linux storage issues. you most likely have one or two large storage consumers triggering the warning.If you cannot find them, every cleanup attempt will be futile.
The fastest way to get clarity is to use Disk Usage Analyzer (Baobab). It’s a GNOME-specific app that comes pre-installed in Linux Mint, Fedora, Pop!_OS, and is also the default in ubuntu and Debian. On lighter, non-GNOME distros, you can install it using one of the commands below:
sudo apt install baobabsudo dnf install baobab
Baobab scans the system and presents a visual folder breakdown by size. It’s one of the easiest ways to spot the culprit, and for me, it’s often a virtual machine image, an old ISO, or a backup directory.
The goal of using a tool like this isn’t just to see large files. It points you to those locations, allowing you to proceed with intentional steps. It’s generally safe to delete bloat in your home directory, but you should clean the system directory with caution, using only built-in m
They are needed in the future. This is a safety net that quickly turns into unwanted clutter.
APT (used by Debian/Ubuntu/Linux Mint) is a big culprit, but this is also true for Fedora’s DNF package manager and pacman in Arch Linux, which store old installer files.
Cleaning the cache is safe, as it doesn’t touch the software itself but removes unused packages. After several months, cleaning the cache can free up several gigabytes. The table below shows cleanup commands:
|
Command |
Distribution |
Effect |
|---|---|---|
|
sudo apt clean |
Linux Mint / Ubuntu |
Wipes the entire local repository of retrieved package files (.deb). |
|
sudo dnf clean all |
Fedora |
Removes all cached packages and metadata from the system. |

