Introduction to Baobab
Baobab is GNOME’s default graphical tool for analyzing disk usage on Linux systems. With its tree-map based interface, it allows you to quickly identify which folders and files consume the most space. Although many users turn to the command line with du and ncdu, Baobab offers a visual alternative that is especially useful for those who prefer a desktop environment. This program is part of the gnome-utils package and remains active thanks to the GNOME developer community. Its simple design hides a powerful scanning engine capable of handling large file systems without consuming excessive resources.
Installation on the most popular distributions
On Ubuntu and its derivatives, Baobab is found in the official repositories and can be installed with the APT package manager. In Fedora, the package is available via DNF, while in Arch Linux it is installed from the community repositories. In all cases, the package name is baobab. openSUSE also includes it in its main repositories under the same name. Users of Gentoo-based distributions can compile it from the Portage tree using the app-admin/baobab category.
- Ubuntu/Debian: sudo apt update && sudo apt install baobab
- Fedora: sudo dnf install baobab
- Arch Linux: sudo pacman -S baobab
- openSUSE: sudo zypper install baobab
- Gentoo: sudo emerge –ask app-admin/baobab
Interface and basic navigation
When launching Baobab from the applications menu or by running baobab in a terminal, a window divided into two panels is displayed. The left panel lists the mounted partitions and home folders, while the right panel presents a ring or bar chart representing the relative size of each subdirectory. Clicking on a segment of the chart drills down into that folder, allowing an intuitive drill‑down. The status bar at the bottom shows the total selected size and the percentage it represents relative to the entire device. The chart colors adapt to the desktop theme, ensuring a consistent visual experience.
Advanced filtering and search functions
Baobab includes a search box that filters items by name, which is useful when looking for a specific file type, such as backups or log files. Additionally, via the View menu you can enable options such as showing hidden files, excluding specific mount points, or changing the display unit between bytes, kilobytes, megabytes, and gigabytes. The program also allows saving the current view state to return to it later, facilitating comparisons between analyses performed at different times. Advanced users can launch Baobab with command-line parameters to start the scan directly on a specific path.
- Search by name or extension
- Show or hide hidden files
- Select measurement units
- Exclude temporary file systems
- Save and load view configurations
Detecting and deleting unnecessary data
One of Baobab’s most appreciated advantages is its ability to quickly locate unexpected “space consumers.” For example, by examining the ~/.cache folder you can identify accumulated download packages or image thumbnails that are no longer needed. After selecting a folder, the Delete button moves the items to the trash, allowing safe recovery if you change your mind. For system partitions, it is recommended to run Baobab with root privileges to access directories such as /var/log or /usr/src where log files and old source code tend to accumulate. It is always good practice to review the content before deleting, as some files may be essential for the operation of critical services.
Comparison with command-line tools
While du -sh * offers a quick numeric summary and ncdu provides interactive navigation in the terminal, Baobab stands out for its graphical representation that facilitates visual understanding of disk usage. In server environments without a graphical environment, console tools remain the best option, but on desktop workstations Baobab improves productivity by reducing the need to interpret raw numbers. Moreover, the ability to export the analysis to XML format allows integrating the data with custom monitoring scripts or with asset management solutions. This combination of usability and extensibility makes Baobab a hybrid option that satisfies both occasional users and administrators who prefer a global view.
Tips for efficient use
- Run Baobab with root privileges to analyze system partitions that would otherwise be protected.
- Save screenshots of the analysis before performing massive cleanups, to have a record of the changes.
- Schedule a weekly execution via a cron task that exports the report in XML format and sends it by email.
- Use the XML export option to
This post is also available in ESPAÑOL.