Clean Disk Space and Traces with bleachbit CLI
Preview available cleaners, then wipe caches, logs and activity traces from the terminal — as user or system-wide with sudo.
01Command
$ bleachbit --list | head && bleachbit --clean system.tmp firefox.cache02What it does
BleachBit knows how dozens of applications store their junk — browser caches, crash logs, thumbnails, recently-used lists — and --clean removes exactly the categories you name. Always run --list first and preview with --preview before cleaning, because some cleaners remove things you may want, like saved passwords or cookies. Unlike generic disk-cleaner scripts, it also offers file shredding and free-space wiping for privacy purposes, all scriptable from cron.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- BleachBit Command Line Interface — Official DocumentationEvidence: Documents bleachbit --list to show available cleaners and --clean cleaner.option to wipe the selected items headlessly.
- BleachBit — READMEEvidence: Official readme: BleachBit frees disk space and guards privacy by cleaning caches, cookies, log files and shredding files.
Last verified: 2026-09-18 · Category: Security & Privacy
06Related solutions
Generate a modern Ed25519 public/private key pair in ~/.ssh for authenticating to servers and Git platforms without passwords.
Add or remove read, write, and execute permission for the owner, group, or others using symbolic or octal modes.
Add a UFW rule to permit inbound traffic on a TCP or UDP port, such as SSH on port 22.