Clean Up Files With rmlint

Detect duplicates, empty files, broken links and more, then generate a cleanup script.

LinuxFilesdiskfindLow risk
Run rmlint ~/Downloads to scan and produce a shell script of suggested actions.

01Command

Command
$ rmlint ~/Downloads

02What it does

rmlint is highly configurable and very fast, detecting duplicates, duplicate directories, empty files, broken symlinks and non-stripped binaries. It emits a shell script rather than deleting directly, so you review before running it.

03Risk

RiskLow risk
Requirementssudo apt install rmlint
!Warning: The generated script deletes files irreversibly; read it and back up important data before executing.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Debian package: rmlint
    Debian · vendor-doc · 2026-09-20
    Evidence: Debian packages rmlint, a fast duplicate and lint finder that generates a removal script.
  • rmlint documentation
    Official project · vendor-doc · 2026-09-20
    Evidence: Debian packages rmlint, a fast duplicate and lint finder that generates a removal script.

Last verified: 2026-09-22 · Category: Files & Folders

06Related solutions