Distro News

Cleaner terminal disk analyzer adds parallel scanning and risk-classified cleanup

Key Takeaway

Cleaner combines parallel filesystem scanning with a checkbox-based cleanup interface that classifies deletion targets by risk and protects sensitive directories.

Summary

Cleaner is a new open-source terminal utility written in Rust that merges disk usage analysis with actual file cleanup capabilities, targeting developers whose systems accumulate build artifacts and caches. The tool distributes directory traversal across multiple CPU cores for faster scanning and presents an interactive terminal browser for examining storage consumption.

Beyond visualization, Cleaner identifies common development artifacts such as node_modules, .terraform, target, and __pycache__ directories, and offers a Deep Clean mode for browser data, editor caches, and other reclaimable storage. Safety features include dry-run mode, time-based filtering, protected-directory rules, and automatic selection of only safe cache categories, with explicit confirmation required for non-interactive deletion. The tool outputs structured JSON for scripting and runs on Linux, macOS, Windows, and FreeBSD under dual MIT/Apache-2.0 licensing.

Architecture and cleanup design

  • Parallel scanning: Directory traversal is distributed across configurable CPU threads, reducing scan time on large filesystems compared to single-threaded du alternatives.
  • Risk-classified cleanup: Targets are categorized by safety level, with only low-risk cache types pre-selected; users must explicitly opt into higher-risk deletions.
  • Protected paths: Built-in rules guard sensitive directories and development toolchains from accidental removal during automated or batch operations.
  • Development artifact detection: Recognizes specific directory patterns including node_modules, .terraform, target, and __pycache__ as common space consumers.
  • JSON output and non-interactive mode: Supports integration with CI pipelines and system administration workflows through structured reporting and confirmed headless operation.

Why it matters

Cleaner enters a crowded field of Rust-based disk utilities but distinguishes itself by combining analysis with guarded cleanup rather than stopping at visualization. For Linux developers and DevOps engineers managing build servers or container hosts, the risk-classification approach and protected paths reduce the operational hazard of automated cache purging, while JSON output enables integration with monitoring and maintenance scripts.

Original reference: www.linuxlinks.com →