smash is a command-line utility for identifying duplicate files by hashing selected portions of their contents. Rather than reading every byte of every file, it divides files into segments and calculates hashes from the sampled data.
This approach is particularly useful when examining very large files or collections stored on devices where reading complete file contents would be expensive. The utility supports several hashing algorithms, including fast non-cryptographic hashes and cryptographic alternatives.
smash concentrates on detection and reporting rather than cleanup. It produces results that can be inspected or processed by other tools before any files are removed.
This is free and open source software.
Key Features
- Finds potentially duplicate files by calculating hashes of selected file segments.
- Avoids reading complete file contents when using partial hashing.
- Supports large files and collections stored on bandwidth-constrained devices.
- Provides fast non-cryptographic hashing using xxHash and MurmurHash.
- Supports SHA-256, SHA-512, MD5 and FNV hashing algorithms.
- Reports files with matching calculated hashes.
- Identifies empty files during directory scans.
- Produces machine-readable JSON reports.
- Supports processing results with JSON utilities and shell scripts.
- Performs read-only filesystem analysis without deleting or modifying files.
- Can analyse collections of scientific datasets, photographs and video files.
- Separates duplicate detection from any subsequent removal process.
- Cross-platform support – runs on Linux, macOS, and Windows.
Website: github.com/thushan/smash
Support:
Developer: Thushan Fernando
License: Apache License 2.0

smash is written in Go. Learn Go 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.