rmlint scans storage for duplicates, broken links, empty paths, and similar waste. It reports findings and supports many output and handling options for large trees.
Overview
rmlint inspects a filesystem for wasted space and inconsistent entries, then offers ways to act on what it finds. It detects duplicate files and duplicate directories, non-stripped binaries with debug symbols, broken symbolic links, empty files and directories, and files with broken user or group IDs.
The tool is designed for speed on large datasets and can scan only files newer than a chosen modification time. It supports paranoia mode for cautious hash verification, multiple hash algorithms, optional byte-by-byte comparison, varied output formats, and non-interactive operation. Results can be cached and replayed later so huge runs do not need a full rescan from scratch.
Users can prioritize which copy of a duplicate to keep and apply several strategies for handling duplicates. BTRFS-specific support is included. Packaging exists for many Linux distributions; optional graphical tooling accompanies the CLI.
The primary target platform is Linux, though it also builds and runs on several Unix-like systems, with some optimizations tied to Linux.
Key features
- Duplicate file and directory detection
- Broken symlink and empty path detection
- Non-stripped binary detection
- Paranoia and hash algorithm options
- Scan caching and replay
- Multiple output formats
- BTRFS-aware operations
- Optional graphical interface
Use cases
- Reclaiming disk space from duplicate media
- Cleaning broken links after refactors
- Auditing large backup or archive trees
- Batch hygiene before migrations
- Scripted filesystem maintenance