1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/duc.md

30 lines
926 B
Markdown
Raw Normal View History

# 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.
2024-10-08 20:21:48 +02:00
> More information: <http://duc.zevv.nl>.
- 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`