Duc is a library and suite of tools for inspecting disk usage.
Duc maintains a database of accumulated sizes of directories of the file system, and allows you to query this database with some tools, or create fancy graphs showing you where your bytes are.
Duc comes with a command line tool called duc, which is used to create, maintain and query the disk usage database.
Duc comes with a number of user interfaces for querying the database: use Duc on the console with a command line or ncurses interface, on graphical desktops with an X or OpenGL GUI, or over the web using the CGI interface.
The software uses Tokyo Cabinet to manage its database.
Key Features
- Built to scale to huge filesystems.
- Fast in operation – disk usage is stored in an optimized database.
- Various sub-commands for querying or exploring the index:
- duc info shows a list of available directory trees in the database, and the time and date of the last scan.
- duc ls lists all files and directories under the given path on the console.
- duc ui runs a ncurses based console user interface for exploring the file system usage.
- duc gui starts a graphical (X11) interface representing the file system in a sunburst graph.
- Handles multiple path arguments.
- DPI handing for graph font size.
Website: duc.zevv.nl
Support: GitHub Code Repository
Developer: Ico Doornekamp
License: GNU Lesser General Public License Version 3

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.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.