Operations 6 min read

Visualize Linux Disk Usage with Duc: Install, Index, and Graphical Views

This guide introduces the Duc tool for visualizing Linux disk usage, covering its supported interfaces and databases, step‑by‑step installation on Debian‑based systems and from source, core commands for indexing and querying, and how to generate terminal and graphical visualizations.

ITPUB
ITPUB
ITPUB
Visualize Linux Disk Usage with Duc: Install, Index, and Graphical Views

Duc is a fast, scalable utility for indexing, checking, and visualizing disk usage on Unix‑like systems, capable of handling hundreds of millions of files and petabyte‑scale storage.

Supported Interfaces

Command‑line interface

Ncurses terminal UI

X11 graphical UI

OpenGL graphical UI

Supported Database Back‑ends

Tokyocabinet (default)

LevelDB

SQLite3

Installation

On Debian‑based distributions: $ sudo apt-get install duc From source (any Unix‑like system):

$ wget https://github.com/zevv/duc/releases/download/1.4.4/duc-1.4.4.tar.gz
$ tar -xzf duc-1.4.4.tar.gz
$ cd duc-1.4.4
$ ./configure
$ make
$ sudo make install

Basic Usage

Create an index for a directory (e.g., /home) and store it in $HOME/.duc.db: $ duc index /home Show available indexes: $ duc info List files and directories in the current or a specific path:

$ duc ls
$ duc ls /home/alvin/Downloads

Get help for a subcommand:

$ duc help ls

Visualization

Display a size‑based bar chart for a directory: $ duc ls -Fg /home/alvin The -F flag adds file‑type indicators, and -g draws a graphical bar for each entry. Omit the path to visualize the current directory. Use -R for a tree‑style view: $ duc ls -R /home/alvin Launch the ncurses UI: $ duc ui /home/alvin Launch the X11 graphical UI:

$ duc gui /home/alvin

Further Information

For a complete list of commands and options, run: $ duc help --all Or consult the manual page:

$ man duc
Duc bar chart example
Duc bar chart example
Duc tree view example
Duc tree view example
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Linuxvisualizationdisk usageSystem ToolsDuc
ITPUB
Written by

ITPUB

Official ITPUB account sharing technical insights, community news, and exciting events.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.