Duc is a collection of utilities for indexing, examining and visualising disk usage. Rather than repeatedly scanning a directory tree whenever information is requested, it creates a database containing information about files and directories. That database can subsequently be queried to investigate where storage space is being consumed.
The approach is particularly useful when working with very large filesystems. Once a directory tree has been indexed, users can explore its contents without waiting for another complete traversal. Duc is designed to handle very large numbers of files and directories, making it useful for system administrators responsible for substantial storage volumes.
Duc offers several ways to explore its database, ranging from conventional command-line output to interactive visualisations. Its different interfaces share the same indexed information, allowing users to choose an approach appropriate to a local desktop, server or remote session.
This is free and open source software.
Key Features
- Indexes directory trees and records cumulative file and directory sizes in a database.
- Designed to handle filesystems containing hundreds of millions of files.
- duc index creates or updates the disk usage database.
- duc info displays indexed directory trees and information about their scans.
- duc ls lists directory contents with sizes and optional graphical size indicators.
- duc ui provides an interactive ncurses interface for navigating indexed directories.
- duc gui displays disk usage using graphical sunburst charts.
- CGI interface makes disk usage information accessible through a web browser.
- Supports hierarchical tree views for examining directory structures.
- Allows multiple paths to be indexed and queried.
- Uses Tokyo Cabinet for database storage.
- Supports configurable graphical display options, including chart appearance and text sizing.
- Cross-platform support – runs on Linux and macOS.
Website: github.com/zevv/duc
Support:
Developer: Ico Doornekamp
License: GNU Lesser General Public License v3.0

Duc is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| Disk Usage Utilities | |
|---|---|
| QDirStat | Excellent Qt-based directory statistics |
| Filelight | Creates an interactive map to visualise disk usage |
| Baobab | Also known as Disk Usage Analyser |
| agedu | Utility for tracking down wasted disk space |
| SquirrelDisk | Bills itself as "the easiest app you will ever use to detect huge files" |
| K4DirStat | KDE Directory Statistics sums up disk usage for directory trees |
| Krusader | File manager with built-in disk usage functionality |
| SpaceMan | Treemap disk usage analyzer |
| xdiskusage | Light and frugal utility |
| MX Cleanup | GUI for system cleanup and maintenance |
| crossdirstat | File and directory statistics written using Electron |
Read our verdict in the software roundup.
| 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.