samanlainen is a command-line utility for finding and deleting duplicate files. It identifies files with matching contents using SHA-512 hashing and a multistage comparison process.
The program first groups files by size and eliminates candidates that cannot match. It then compares hashes of selected portions of the remaining files before calculating hashes of their complete contents. This avoids reading unnecessary data when files can be distinguished early.
samanlainen operates in dry-run mode by default, allowing users to inspect identified duplicates before enabling deletion. Its retention rules consider directory priority and file age when selecting which copy should be preserved.
This is free and open source software.
Key Features
- Finds duplicate files within one or more specified directories.
- Uses SHA-512 hashing to compare file contents.
- Eliminates files with unique sizes before performing content comparisons.
- Hashes selected portions from the beginning and end of candidate files.
- Calculates full-content hashes for files that remain possible duplicates.
- Supports configurable minimum and maximum file sizes.
- Allows the amount of data used during preliminary comparisons to be adjusted.
- Provides a dry-run mode that reports duplicate files without deleting them.
- Supports explicitly enabling deletion of redundant copies.
- Allows the minimum number of matching copies to be specified.
- Offers sorting by inode, filename or directory depth.
- Uses directory priority and file age to determine which copy should be retained.
- Avoids treating multiple hard links to the same underlying file as separate copies.
- Provides configurable verbosity and terminal colouring.
Website: github.com/raspi/samanlainen
Support:
Developer: Pekka Järvinen
License: Apache License 2.0

samanlainen is written in Rust. Learn Rust with our recommended free books and free tutorials
Related Software
| Find and Delete Duplicate Files with these CLI Tools | |
|---|---|
| Czkawka | Find duplicate files, big files, empty files, similar images, and much more |
| fdupes | Great CLI tool that's written in C |
| fclones | Efficient duplicate file finder and remover |
| rmlint | Fast tool to remove duplicates and other lint |
| jdupes | Powerful CLI duplicate file finder and 'enhanced' fork of fdupes |
| smash | Find duplicate files super fast |
| rdfind | CLI redundant data find tool written in C++ |
| duff | Command-line utility for finding duplicate files |
| rmdupes | Option to use a reference directory |
| Periscope | Organize storage and safely remove redundant files |
| Go Find Duplicates | Scans directories for duplicate files and directories |
| dskDitto | Parallel duplicate-file detector with interactive menus |
| samanlainen | Delete duplicate files with SHA512 hashing |
| FSlint | Python based CLI and GUI tool |
| sdupes | Fast duplicate file detection utility. |
| dupefi | Duplicate file finder designed with Linux philosophy |
| Dupster | Duplicate file finder |
| duple | Find and remove duplicate files |
| ddh | Directory Differential hTool |
| backdown | Safely and ergonomically remove duplicate files |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.