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
DuplicateFileDetector.sh
: Bash script for Unix/Linux systems.DuplicateFileDetector.ps1
: PowerShell script for Windows systems.DuplicateFileDetector.py
: Python script for cross-platform usage.
- 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.
- Ensure you have execution permission:
chmod +x DuplicateFileDetector.sh
- Run the script:
./DuplicateFileDetector.sh
- Enter the directory path when prompted.
- Open PowerShell with administrative privileges.
- Execute the script:
.\DuplicateFileDetector.ps1
- Follow the on-screen instructions.
- Ensure Python is installed on your system.
- Run the script:
python DuplicateFileDetector.py
- Input the directory path as prompted.
- Bash script requires
sha256sum
and standard Unix utilities. - PowerShell script requires Windows PowerShell 5.1 or higher.
- Python script requires Python 3.x.
If you found this helpful, please consider:
- Buymeacoffee: Link