HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

duc — A collection of tools for indexing, inspecting, and visualizing disk usage. Duc maintains a database

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandducinspectingcollectioncliindexingfortools

Problem

How to use the duc command: A collection of tools for indexing, inspecting, and visualizing disk usage. Duc maintains a database of accumulated sizes of directories of the file system, allowing queries in this database, or creating fancy graphs to show where data is. More information: <https://htmlpreview.github.io/?https://github.com/zevv/duc/blob/master/doc/duc.1.html>.

Solution

duc — A collection of tools for indexing, inspecting, and visualizing disk usage. Duc maintains a database of accumulated sizes of directories of the file system, allowing queries in this database, or creating fancy graphs to show where data is. More information: <https://htmlpreview.github.io/?https://github.com/zevv/duc/blob/master/doc/duc.1.html>.

Index the /usr directory, writing to the default database location ~/.duc.db:
duc index {{/usr}}


List all files and directories under /usr/local, showing relative file sizes in a graph:
duc ls {{[-Fg|--classify --graph]}} {{/usr/local}}


List all files and directories under /usr/local using treeview recursively:
duc ls {{[-Fg|--classify --graph]}} {{[-R|--recursive]}} {{/usr/local}}


Start the graphical interface to explore the file system using sunburst graphs:
duc gui {{/usr}}


Run the ncurses console interface to explore the file system:
duc ui {{/usr}}


Dump database info:
duc info

Code Snippets

Index the `/usr` directory, writing to the default database location `~/.duc.db`

duc index {{/usr}}

List all files and directories under `/usr/local`, showing relative file sizes in a graph

duc ls {{[-Fg|--classify --graph]}} {{/usr/local}}

List all files and directories under `/usr/local` using treeview recursively

duc ls {{[-Fg|--classify --graph]}} {{[-R|--recursive]}} {{/usr/local}}

Start the graphical interface to explore the file system using sunburst graphs

duc gui {{/usr}}

Run the ncurses console interface to explore the file system

duc ui {{/usr}}

Context

tldr-pages: common/duc

Revisions (0)

No revisions yet.