English | 日本語
The installed program is authoritative: use qdu --help and qdu <command> --help. This reference summarizes all commands and option families.
| Option | Default | Meaning |
|---|---|---|
--version |
— | Print version and exit |
--profile NAME |
$QDU_PROFILE or default |
Select a profile |
--format table|tsv|json |
table |
Select output format |
--style auto|rich|plain |
auto |
Select table style |
--color auto|always|never |
auto |
Control terminal color |
-h, --help |
— | Print contextual help |
Sizes accept decimal and binary suffixes such as GB, GiB, and TiB. Durations accept units such as h and d. Profile-backed options use the saved value unless explicitly overridden.
Capture a snapshot. Key options: -p/--path, repeatable --exclude, --exclude-from, --keep-snapshots, --with-users/--without-users, --user-max-depth, --file-top, --record-max-depth, --cross-filesystems/--one-file-system, and --quiet.
Rank directories. Key options: --snapshot (latest), -L/--max-depth (1), -n/--top (20), --under (.), --min-size, --match, --metric allocated_bytes|apparent_bytes, --warn-age, --stale, --stale-only, --stale-thresholds, --users, --user-top, and --user-dir-top.
Capacity options shared by show, check, and profile add are --capacity-limit, --no-capacity-limit, --capacity-user, and --capacity-profile.
Compare snapshots. Use --from, --to, or --previous; scope with --under, --max-depth, --top, --min-size, and --match; filter with --growth-only or --shrink-only; order by growth, shrink, absolute, or current.
List snapshot history. --top defaults to 20; table, TSV, and JSON are supported.
Rank owners from a snapshot collected with user statistics. Options: --snapshot, --top (10), --dirs (5), and --metric allocated_bytes|inode_count.
Show recoverable scan errors. --snapshot defaults to latest-any; --top defaults to 100.
Show stored large-file candidates or perform a live file scan with --live. Options include --path for live mode, --snapshot, --top (30), --under, --min-size, --user, --stale, --stale-only, and --stale-thresholds.
Rank directory inodes or use --users for owner ranking. Directory options include --snapshot, --max-depth, --top, --under, and --match; owner detail uses --dirs.
Show the immediate children below one recorded path. --diff switches to change analysis. It accepts the corresponding show or diff filtering, staleness, owner, and output options.
Select a recorded directory with optional fzf, then render it like show. It accepts snapshot, ranking, staleness, owner, and output options.
Evaluate --growth-over, --disk-usage-over, --inode-usage-over, and/or the configured/explicit capacity policy. --path scopes growth. At least one policy must be active. An exceeded policy exits with 10.
Gzip old databases. Options: --older-than (30d), --keep-latest (2), and --dry-run.
Verify --snapshot (latest) or use --all for every indexed snapshot.
Inspect the Python/SQLite environment, configuration, root, state storage, index, lock, and filesystem capacity.
Rebuild the profile index from valid snapshot files. Use --dry-run to preview.
Remove stale lock metadata only when no active process owns the lock.
profile listlists configured profiles.profile show NAMErenders one profile; JSON is available.profile add NAME --path PATHcreates or updates safe settings. It accepts retention, exclusions, owner collection, stored-depth, large-file, capacity, and filesystem-boundary options.profile remove NAME [--delete-data]removes configuration and optionally private profile state.
Profile names are restricted to alphanumerics plus ., _, and -; path syntax is rejected.
config pathprints the resolved file path.config initcreates a starter file without overwriting an existing one.config show [--profile NAME]renders effective settings.
latest selects the newest complete snapshot; latest-any includes incomplete snapshots; previous selects the eligible predecessor. Exact IDs, indexed filenames, and unambiguous ID prefixes are accepted. Unsafe filenames in an index are rejected as malformed stored data.
See Operations and maintenance for the stable exit-code contract.