Bonsai is a terminal disk usage analyzer inspired by GNOME’s Baobab application. It presents directory sizes through a navigable sidebar and a visual chart, bringing some of the functionality associated with graphical disk usage tools into a text-based interface.
The application uses a multithreaded scanner to collect information about files and directories. Its interface can begin displaying information before scanning finishes, allowing users to see the developing results while the directory tree is examined.
Bonsai’s chart uses multiple rings to represent nested directory structures. Each section is colour-coded, providing a visual indication of how storage is distributed between files and folders.
The sidebar and chart are linked. Navigating through the directory list updates the visualisation, while highlighting allows users to associate entries in the list with their corresponding chart sections.
Bonsai also provides functionality for removing selected files and directories, making it useful for investigating and reclaiming disk space directly from the terminal.
This is free and open source software.
Key Features
- Interactive terminal interface inspired by GNOME Baobab.
- Directory sidebar showing folder names and sizes.
- Multi-ring chart for visualising nested directory structures.
- Colour-coded sections distinguishing files and directories.
- Multithreaded filesystem scanning.
- Asynchronous interface rendering while scans are in progress.
- Dynamic chart updates when navigating between directories.
- Highlight corresponding chart sections when selecting files or folders.
- Keyboard controls for directory navigation and interface adjustments.
- Resizable sidebar.
- Configurable application settings.
- Delete selected files and directories.
Website: github.com/orrnithogalum/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.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.