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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

duc: command not found

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.

If you encounter the below error while running the command duc:

duc: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install duc
Ubuntu apt-get install duc
Kali Linux apt-get install duc
OS X brew install duc
Raspbian apt-get install duc

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. How to Install Mokutil package on CentOS/RHEL 7 and 8
  2. lolcat: command not found
  3. timedatectl: command not found
  4. CentOS / RHEL : How to restrict SSH login by time of day
  5. extundelete Command Examples in Linux
  6. localectl Command Examples in Linux
  7. netstat: command not found
  8. binwalk Command Examples in Linux
  9. btrfs property Command Examples in Linux
  10. Change default kernel (boot with old kernel) in CentOS/RHEL/OEL 5 and 6

You May Also Like

Primary Sidebar

Recent Posts

  • fprintd-delete Command Examples in Linux
  • fprintd-delete: command not found
  • foreman: command not found
  • foreman Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright