Skip to main content

Menu

--menu prints a numbered list of every category and runs the one you pick. Use it when you know what you want and do not need the ten-step tour.

linux-cleanup --menu # or: -m, -i, --interactive

How it differs from the walkthrough​

MenuWalkthrough
OrderYou chooseFixed, ten steps
ScopeOne category per selectionEverything, in sequence
LoopsReturns to the menu afterwardsRuns to the end
ReportPer actionOne session report
Best forTargeted cleanupFirst runs, full sweeps

The safety model is identical. Every category behaves exactly as it does in the walkthrough — the allowlist, the staleness gate and per-target confirmation all apply. Picking a personal-data category from the menu still gives you per-entry prompts, and --yes still has no effect on it.

Options still apply​

linux-cleanup --menu -d 30 # 30-day threshold for whatever you pick
linux-cleanup --menu --purge-all # staleness gate off
linux-cleanup --menu --no-color # plain output

When to use the TUI instead​

--tui is the same menu rendered as a whiptail or dialog box. It needs one of those installed; --menu needs nothing beyond bash and works over any connection, including a dumb terminal or a ssh -T session where a full-screen dialog would misbehave.

Next​