Bonsai is a terminal user interface (TUI) remake of the GNOME Baobab disk usage analyzer.
It provides a lightweight, fast, and visually structured way to explore disk usage on Linux systems directly in the terminal.
This is free and open source software.
Key Features
- Navigable sidebar displaying folder sizes, sorted by a multithreaded scanning algorithm.
- Pie chart visualization similar to GNOME Baobab:
- Multiple rings representing nested directories.
- Color-coded sections for files and folders.
- Percentage size usage labels for each item.
- Built using CMake and FTXUI for a modern TUI experience.
- Tree and hashmap-based data structure for efficient folder size lookups.
- Dynamic pie chart updates when navigating between folders in the sidebar.
- Pie chart highlighting when hovering over folders or files.
- Asynchronous UI rendering before scan completion.
- User customization via configuration file.
- Ability to remove files / folders.
Website: github.com/LittleBigOwI/bonsai
Support:
Developer: LittleBigOwl
License: GNU General Public License v3.0

Bonsai is written in C++. Learn C++ with our recommended free books and free tutorials.
Related Software
| du alternatives | Programming Language | License |
|---|---|---|
| dust | Rust | Apache License 2.0 |
| duf | Go | MIT License |
| Duc | C | GNU Lesser General Public License v3 |
| Ncdu | C | GNU GPL v2.0 License |
| gdu | Go | MIT License |
| cull | Go | MIT License |
| dua | Rust | MIT License |
| erdtree | Rust | MIT License |
| pdu | Rust | Apache License 2.0 |
| vizex | Python | MIT License |
| godu | Go | MIT License |
| dutree | Rust | GNU General Public License v3 |
| space | Rust | MIT License |
| darya | Rust | GNU General Public License v3.0 |
| diskus | Rust | MIT License or Apache License 2.0 |
| NoxDir | Go | MIT License |
| mcdu | Rust | MIT License |
| dirstat-rs | Rust | MIT License |
| diskonaut | Rust | MIT License |
| bonsai | C++ | GNU General Public License v3.0 |
| diskard | Rust | MIT License or Apache License 2.0 |
| cdu | Perl | GNU General Public License v2.0 |
| tdu | Go | GNU General Public License v2 |
| duviz | Python | MIT License |
| dut | C | GNU General Public License v3.0 |
| whalespotter | Rust | MIT License |
| sn | Rust | BSD 3-Clause “New” or “Revised” License |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

