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 Analyse |
| 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 |
| 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 |
| 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 comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

