ncdu-zig is a maintenance fork of ncdu, the established terminal-based disk usage analyzer. The project continues development of the Zig implementation originally created by Yoran Heling, preserving the familiar interface while maintaining compatibility with newer development tools.
The application is designed for examining filesystem usage on machines where a graphical desktop may be unavailable or unnecessary. Its text-based interface is particularly useful for administrators investigating storage problems over SSH.
Users can navigate directory hierarchies, compare storage requirements, and identify files or directories that may be suitable for removal. The program also supports saving scan results for analysis at another time or on another computer.
This is free and open source software.
Key Features
- Interactive ncurses interface for exploring files and directories according to their storage consumption.
- Displays allocated disk usage or apparent file sizes, with the ability to switch between measurements.
- Sort entries by size, name, item count, and other available filesystem attributes.
- Multi-threaded filesystem scanning to accelerate analysis of large directory hierarchies.
- Export directory information in JSON or binary formats for subsequent inspection.
- Binary export supports efficient browsing of large saved scans without loading the entire hierarchy into memory.
- Optional compression of exported scan information.
- Customizable scanning behaviour, including filesystem boundary restrictions and exclusion rules.
- Display or hide selected files and excluded entries.
- Interactive deletion of files and directories with optional confirmation prompts.
- Refresh directory information after changes to the filesystem.
- Configurable colour schemes and display preferences.
- Progress reporting during filesystem scans and data imports.
- Cross-platform support – runs on Linux and macOS.
Website: github.com/BratishkaErik/ncdu
Support:
Developer: Eric Joldasov (maintenance fork); originally Yoran Heling
License: MIT License
ncdu-zig is written in Zig. Learn Zig with our recommended 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.