Folder

TwinHunter – find and clean up duplicate files

TwinHunter is a command-line utility for finding and cleaning up duplicate files.

It scans a directory, groups files with identical content and reports the number of duplicate copies, their combined size and the amount of storage that can be recovered.

The software uses a two-stage hashing process, combining the speed of BLAKE3 with SHA-256 verification. Searches can be narrowed by file size, extension, directory, glob or regular-expression filters. After reviewing the results, users can delete redundant copies, replace them with links or move them to a backup directory. Dry-run and interactive confirmation modes help guard against unintended changes.

This is free and open source software.

Key Features

  • Finds duplicate files by comparing their content.
  • Uses BLAKE3 for initial hashing and SHA-256 for verification.
  • Concurrent hashing with a configurable number of worker processes.
  • Automatically uses all available CPU cores when the worker count is set to zero.
  • Scan a single directory or recurse through its subdirectories.
  • Set minimum and maximum file sizes.
  • Exclude files using glob or regular-expression patterns.
  • Exclude specified directory names and file extensions.
  • Ignores common directories such as .git, node_modules, .svn and __pycache__ by default.
  • Reports duplicate groups, duplicate-file counts, wasted space and recoverable storage.
  • Detects files that are already hard linked.
  • Sort duplicate groups by size, number of copies or file path.
  • Keep the oldest file, newest file or file with the shortest path.
  • Delete redundant copies.
  • Replace duplicates with hard or symbolic links.
  • Move duplicate files to a backup directory.
  • Interactive menu for selecting a cleanup action and keep strategy.
  • Confirmation prompts before modifying files.
  • Dry-run mode previews cleanup operations without changing the filesystem.
  • Pretty, JSON, CSV and silent output modes.
  • Export reports in JSON, CSV or HTML format.
  • Perform cleanup later using a previously saved report.
  • Verbose mode displays hashes, sizes and modification times.
  • Live progress indicator during scanning.
  • Shell completion for Bash, Zsh, Fish and PowerShell.

Website: github.com/mrinjamul/TwinHunter
Support:
Developer: Injamul Mohammad Mollah
License: MIT License

TwinHunter usage and available commands

TwinHunter 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 Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted