cleanux
Fast, safe, and scriptable Linux cleanup in one Rust CLI.
Think "CleanMyMac for Linux" without the bloat:
- Scan and safely clean user cache (Trash by default)
- Clean common browser caches (Chromium/Firefox)
- Clean thumbnails and recent files list
- Optional user log cleanup (systemd journal)
- Find duplicate files (size -> BLAKE3 hash)
- List the largest files fast
Requirements
- Rust 1.85+ (Rust 2024 edition)
Build
Testing
- The confirmation dialog test auto-skips when stdin is a TTY to avoid blocking.
Usage
Scan (all cleaners)
Clean (safe: move to Trash)
Dry-run is the default. Add --apply to actually move items to Trash.
Restrict to cache-only cleaners
Find duplicates
Largest files
JSON report output
Notes / Safety
cleanux scantargets multiple cleaners; usescan cacheto restrict to cache items.- Deletions are implemented as move to Trash (FreeDesktop Trash on Linux).
- You can extend cleaners by adding modules under
src/cleaners/.
Why cleanux?
- Safe by default: dry-run first, Trash instead of delete.
- Fast scans: parallel walking with predictable output.
- Simple workflow: one binary, clear subcommands, no daemon.
Roadmap ideas
- Configurable excludes via
config.toml. - More cleaners (system logs, old downloads, browser caches).