Skip to content

A command line utility that recursively finds duplicate files using cryptographic hash with high performance hardware instructions and multithreading.

Notifications You must be signed in to change notification settings

Saad-Hussain31/TwinSeeker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwinSeeker

TwinSeeker is a C++ based command-line utility that recursively scans given directories and identifies duplicate files. By utilizing SHA-256 hashing, this tool efficiently compares files to help free up storage space by identifying redundant files, making it easier to manage your data.

Features

  • Recursively scans directories for duplicate files.
  • Efficient comparison of files using SHA-256 hashing.
  • Handles symbolic links and ignores identical directory paths.
  • Handles file read errors gracefully.
  • Reports zero byte files (empty files) as duplicates.

Prerequisites

  • A C++17 compliant compiler
  • CMake version 3.10 or above

Installation

  1. Clone this repository to your local machine.

    git clone https://github.com/Saad-Hussain31/TwinSeeker.git
  2. Navigate into the TwinSeeker directory and execute the generate_samples.sh script.

    cd TwinSeeker
    ./generate_samples.sh

    This script generates sample files in the samples directory for testing TwinSeeker.

  3. Create a build directory.

    mkdir build
  4. Change to the build directory, run CMake to configure the build, and then compile the code.

    cd build
    cmake ..
    make
  5. The twinSeeker executable will be created in the build directory.

Usage

Run twinSeeker followed by the directories you want to scan. The tool will recursively scan the directories and output any duplicate files it finds. Here is a basic example:

./twinSeeker ../samples 

About

A command line utility that recursively finds duplicate files using cryptographic hash with high performance hardware instructions and multithreading.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published