smash – fast duplicate file detection

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

Options for smash CLI tool
Click image for full size

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
CzkawkaFind duplicate files, big files, empty files, similar images, and much more
fdupesGreat CLI tool that's written in C
fclonesEfficient duplicate file finder and remover
rmlintFast tool to remove duplicates and other lint
jdupesPowerful CLI duplicate file finder and 'enhanced' fork of fdupes
smashFind duplicate files super fast
rdfindCLI redundant data find tool written in C++
duffCommand-line utility for finding duplicate files
rmdupesOption to use a reference directory
PeriscopeOrganize storage and safely remove redundant files
Go Find DuplicatesScans directories for duplicate files and directories
dskDittoParallel duplicate-file detector with interactive menus
samanlainenDelete duplicate files with SHA512 hashing
FSlintPython based CLI and GUI tool
sdupesFast duplicate file detection utility.
dupefiDuplicate file finder designed with Linux philosophy
DupsterDuplicate file finder
dupleFind and remove duplicate files
ddhDirectory Differential hTool
backdownSafely and ergonomically remove duplicate files

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted