AlteredAdmin / Duplicate-File-Detector

This repository contains scripts for detecting duplicate files in a specified directory. The scripts use hash functions to identify duplicates by comparing file contents, ensuring accuracy regardless of file names. Available for Bash, PowerShell, and Python environments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate File Detector

This repository contains scripts for detecting duplicate files in a specified directory. The scripts use hash functions to identify duplicates by comparing file contents, ensuring accuracy regardless of file names. Available for Bash, PowerShell, and Python environments.

Author: Altered Admin
Website: Altered Admin's Site
Twitter: @Alt3r3dAdm1n

Scripts

  • DuplicateFileDetector.sh: Bash script for Unix/Linux systems.
  • DuplicateFileDetector.ps1: PowerShell script for Windows systems.
  • DuplicateFileDetector.py: Python script for cross-platform usage.

Features

  • Efficiency: Quickly scans directories by calculating file hashes.
  • Accuracy: Detects duplicates based on file content, not names.
  • Convenience: Generates a CSV file listing all duplicate files with their paths.
  • Flexibility: Offers versions for multiple operating systems and environments.

Usage

Bash (Unix/Linux)

  1. Ensure you have execution permission: chmod +x DuplicateFileDetector.sh
  2. Run the script: ./DuplicateFileDetector.sh
  3. Enter the directory path when prompted.

PowerShell (Windows)

  1. Open PowerShell with administrative privileges.
  2. Execute the script: .\DuplicateFileDetector.ps1
  3. Follow the on-screen instructions.

Python (Cross-Platform)

  1. Ensure Python is installed on your system.
  2. Run the script: python DuplicateFileDetector.py
  3. Input the directory path as prompted.

Requirements

  • Bash script requires sha256sum and standard Unix utilities.
  • PowerShell script requires Windows PowerShell 5.1 or higher.
  • Python script requires Python 3.x.

Support the Developer

If you found this helpful, please consider:

  • Buymeacoffee: Link

About

This repository contains scripts for detecting duplicate files in a specified directory. The scripts use hash functions to identify duplicates by comparing file contents, ensuring accuracy regardless of file names. Available for Bash, PowerShell, and Python environments.


Languages

Language:Python 40.9%Language:PowerShell 37.4%Language:Shell 21.7%