mcdu is a terminal-based disk usage analyzer with additional functionality for cleaning up files created by development tools. It combines directory exploration with targeted detection of caches, build artifacts and other data that can accumulate during software development.
The application offers an interactive filesystem browser with keyboard navigation and size-based visual indicators. Users can inspect directories to identify storage consumption or switch to its developer cleanup functions to find potentially reclaimable space.
Its cleanup routines recognise artifacts from a range of development environments and build systems. Examples include dependency directories, compiled output, caches and other files generated by development workflows.
mcdu includes safeguards intended to reduce the risk of accidental deletion. Users can preview cleanup actions, receive confirmation prompts and record operations in a machine-readable audit log.
The application is suitable for developers who regularly work with large projects and want to combine general disk analysis with targeted removal of generated files.
This is free and open source software.
Key Features
- Interactive terminal disk usage browser with size-based colour indicators.
- Keyboard navigation using vim-style controls.
- Background filesystem scanning with live progress reporting.
- Developer cleanup routines covering numerous programming ecosystems.
- Detect build output, dependency directories and development caches.
- Identify orphaned application data on macOS.
- Configurable cleanup rules and age-based protection for selected directories.
- Dry-run mode for previewing proposed deletions.
- Confirmation dialogs before removing selected data.
- JSON audit logs recording cleanup operations.
- Options for including or excluding particular categories of build artifacts.
- Parallel scanning for identifying reclaimable development files.
- Cross-platform support – runs on Linux and macOS.
Website: github.com/mikalv/mcdu
Support:
Developer: Mikal Villa
License: MIT License

mcdu is written in Rust. Learn Rust 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.