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.
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 installBasic 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/DownloadsGet help for a subcommand:
$ duc help lsVisualization
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/alvinFurther Information
For a complete list of commands and options, run: $ duc help --all Or consult the manual page:
$ man ducSigned-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
ITPUB
Official ITPUB account sharing technical insights, community news, and exciting events.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
