1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 07:35:24 +02:00

duc: add page (#7869)

* Create duc.md

Co-authored-by: Emily Grace Seville <emilyseville7cf@gmail.com>
This commit is contained in:
Gabri Botha 2022-04-15 11:48:20 +02:00 committed by GitHub
parent 567b5a882a
commit 870c730191
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 0 deletions

28
pages/common/duc.md Normal file
View file

@ -0,0 +1,28 @@
# duc
> Duc is 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 this database, or create fancy graphs to show where data is.
> More information: <https://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 [g]raph:
`duc ls -Fg {{/usr/local}}`
- List all files and directories under /usr/local using treeview recursively:
`duc ls -Fg -R {{/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`

28
pages/linux/duc.md Normal file
View file

@ -0,0 +1,28 @@
# duc
> Duc is 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 this database, or create fancy graphs to show where data is.
> More information: <https://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 [g]raph:
`duc ls --classify --graph {{/usr/local}}`
- List all files and directories under /usr/local using treeview recursively:
`duc ls --classify --graph --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`