Clean Up Files With rmlint
Detect duplicates, empty files, broken links and more, then generate a cleanup script.
Run rmlint ~/Downloads to scan and produce a shell script of suggested actions.
01Command
Command
$ rmlint ~/Downloads02What 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
!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: rmlintEvidence: Debian packages rmlint, a fast duplicate and lint finder that generates a removal script.
- rmlint documentationEvidence: Debian packages rmlint, a fast duplicate and lint finder that generates a removal script.
Last verified: 2026-09-22 · Category: Files & Folders
06Related solutions
Search text recursively in a directory with grep
Find every occurrence of a pattern across all files in a tree, printed as file:line:number matches.
Extract a .tar.gz archive with tar
Unpack a gzipped tarball into the current directory while printing each file as it is extracted.
Check free disk space on each filesystem with df
Show total, used, and available space plus usage percentage for every mounted filesystem in human-readable units.