• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

duc Command Examples in Linux

by Deepika

DUC (Disk Usage Collector) is a collection of tools for inspecting and visualizing disk usage on a Linux system. It allows users to easily analyze and understand the disk usage of their file systems, as well as identify any areas where disk space is being wasted or used inefficiently.

DUC is written in C and it uses SQLite as a database to store indexed data. It can run on most Linux distributions and it support for ext4, xfs, btrfs and other file systems.

duc Command Examples

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

# duc index /usr

2. List all files and directories under /usr/local, showing relative file sizes in a [g]raph:

# duc ls -Fg /usr/local

3. List all files and directories under /usr/local using treeview recursively:

# duc ls -Fg -R /usr/local

4. Start the graphical interface to explore the file system using sunburst graphs:

# duc gui /usr

5. Run the ncurses console interface to explore the file system:

# duc ui /usr

6. Dump database info:

# duc info

Conclusion

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.

Filed Under: Linux

Some more articles you might also be interested in …

  1. snmpwalk: command not found
  2. maestral Command Examples
  3. lvm: command not found
  4. lshal Command Examples in Linux
  5. tar Command Examples in Linux
  6. gbp: command not found
  7. flex: Lexical analyzer generator (Based on lex)
  8. pacman –remove Command Examples in Linux
  9. join Command Examples
  10. btrfs restore Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright