Title: Visualize Disk Usage on Linux Using Baobab – Quick, Handy, and Actually Useful
The first thing you’ll learn is how to launch Baobab (GNOME Disk Usage Analyzer) and turn a wall of numbers into a colorful map that tells you where your files are really hiding. If your system’s running out of space because the kernel logs decided to be a data‑hoarder, this trick will make it crystal clear.
Why Baobab?
It sits in every GNOME‑based distro’s toolbox and turns raw usage into a pie‑chart that you can click on with the same ease you’d use a file manager. No more hunting for large files with find or sifting through du -sh *.
How to Install Baobab
Most modern distros ship it by default, but if yours doesn’t:
- Ubuntu/Debian
sudo apt update && sudo apt install baobab
- Fedora
sudo dnf install baobab
- Arch/Manjaro
sudo pacman -S gnome-disk-usage-analyzer
A single command installs a GUI that instantly visualises what df only gives you as percentages.
Launching and Setting It Up
1. Open it from the dash – type “Baobab” or hit Super + D then search.
If it doesn’t appear, run baobab in a terminal; that will auto‑install missing dependencies.
2. Choose what to scan – on start you’ll see three options:
* Filesystem – entire root filesystem.
* Folder… – pick any directory.
* User Files – your home folder only.
3. Start scanning – click “Scan” and watch the progress bar tick.
A full‑system scan can take a minute on a 500 GB SSD, but it gives you a single view of every mount point and user directory. Skipping to “User Files” is handy if you’re just debugging a home‑dir bloat.
Interpreting the Visual
Baobab renders a radial diagram with concentric rings:
- The center represents the root partition (/).
- Each ring shows mounted filesystems, sub‑directories, or user folders.
- Hovering over a slice pops up its exact size and path.
I once saw a 93 % full disk after a kernel update that left /var/log ballooned to 1.5 GB. Clicking the orange segment in Baobab instantly revealed dozens of old kernel.log.* files, each only 10 MB, but together they were killing the drive.
Instead of wading through /var/log, you get a visual cue that points straight at the culprit. It also helps when you’re cleaning up Docker images or swapping out large media libraries.
Quick Cleanup Tricks from Baobab
1. Delete large, unwanted folders – right‑click a slice > “Open in Files” > remove manually.
2. Empty the Trash – right‑click the trash icon on the left pane and confirm; it frees space immediately but doesn’t touch hidden or system logs.
3. Clear package caches – run sudo apt clean (Debian) or sudo dnf clean all (Fedora); Baobab will then show a new, smaller “/var/cache” segment.
Each of those actions is just a few clicks away once you know where the big chunks live. And if something looks suspiciously small on the chart but still hogs space, double‑check with du -sh in that folder to confirm no hidden files are sneaking around.
When Baobab Isn’t Enough
If you’re dealing with a massive filesystem (>200 GB) and the scan stalls, consider:
- Running baobab --no-desktop for a headless analysis.
- Using baobab -s /path/to/directory to focus on one area.
- Combining it with ncdu in terminal for quick text‑based navigation.
Baobab is great, but it can be heavy on RAM when scanning millions of tiny files. A hybrid approach gives you speed without sacrificing the visual payoff.
That’s all there is to turning Linux disk usage from a cryptic list into an eye‑catching map. Open Baobab, point at your biggest directories, and watch those colorful slices give you instant insight. Hope that clears up your disk mystery—happy exploring!