dust vs dua

dust vs dua: compare their workflows, configuration choices, and practical tradeoffs.

Updated

short verdict

Use dust to narrow a size report with filters; use dua when navigating and deleting in the same session is the goal.

Decide whether you want a report to read or an interactive cleanup session. Both workflows start with directory sizes, but they lead to different next actions.

this page is for

  • filtered directory-size reports
  • interactive disk cleanup
pick

dust

★ 12.7kRust
details

Use dust for a directory-size tree with percentage bars, regex filters, and JSON export.

best for

  • filtered directory-size reports

strengths

  • Percentage bars show relative size within the directory hierarchy
  • Use -e/-v for regex filters and -z for a minimum size
  • Use -j for JSON or -t to group results by file type

weaknesses

  • The default terminal-height report is selective; adjust filters when you need to inspect less prominent paths.
pick

dua

★ 6.5k
details

Use dua when you want to navigate directory sizes and select files for deletion inside a TUI.

best for

  • interactive disk cleanup

strengths

  • Interactive navigation and deletion include multi-stage deletion protection
  • Parallel directory traversal is enabled by default
  • Configure whether Esc visits the parent directory or quits

weaknesses

  • Interactive deletion changes the filesystem, so check the selected paths before confirming cleanup.

Key differences

  • Interaction: dust prints a hierarchical size report; dua offers command-line statistics and an interactive directory browser.
  • Investigation: dust narrows a report with regex and size filters; dua lets you navigate directories and select cleanup targets.
  • Configuration: dust stores defaults in a TOML file; dua exposes configurable keyboard behavior such as the Esc action.
  • Next step: dust can export JSON for another program; dua can apply a deletion after its confirmation stages.

Choose dust when

  • Percentage bars show relative size within the directory hierarchy
  • Use -e/-v for regex filters and -z for a minimum size
  • Use -j for JSON or -t to group results by file type

Choose dua when

  • Interactive navigation and deletion include multi-stage deletion protection
  • Parallel directory traversal is enabled by default
  • Configure whether Esc visits the parent directory or quits

FAQ

How can I focus a dust report on a subset of files?
Use -e/-v for regex inclusion or exclusion, -D/-F for directory-only or file-only views, and -z for a minimum size. Choose filters that match the question you want the scan to answer.
Which workflow combines investigation with cleanup?
dua lets you navigate the scan and select files or directories for deletion. Its multi-stage protection gives you a chance to check the selected paths before applying the operation.
Can I keep dust output for another program?
dust supports JSON output with -j. Use that format when you need structured results rather than parsing its visual bar chart.

related