A small command-line utility to find duplicate files. Mirror of https://github.com/oliverbooth/fdup
Go to file
Oliver Booth 921c1b19c1
perf: check filesize first to reduce HashData alloc
2024-04-17 19:24:22 +01:00
.github ci: upgrade from save-state and set-output 2024-04-17 14:58:30 +01:00
FindDuplicates perf: check filesize first to reduce HashData alloc 2024-04-17 19:24:22 +01:00
.gitignore feat: initial commit 2024-04-16 20:15:07 +01:00
FindDuplicates.sln feat: initial commit 2024-04-16 20:15:07 +01:00
LICENSE.md feat: initial commit 2024-04-16 20:15:07 +01:00
README.md docs: don't worry about it 2024-04-17 15:18:56 +01:00
global.json feat: initial commit 2024-04-16 20:15:07 +01:00

README.md

Find Duplicates (fdup)

GitHub Actions Workflow Status GitHub Issues or Pull Requests GitHub License

About

fdup is a small command-line utility written in C# to quickly and easily find duplicate files. It can also search recursively to find duplicate files in child directories.

Usage

$ fdup --help
USAGE:
    fdup [path] [OPTIONS]

ARGUMENTS:
    [path]    The path to search. Defaults to the current directory

OPTIONS:
    -h, --help         Prints help information
    -v, --version      Prints version information
    -r, --recursive    When this flag is set, the directory will be scanned recursively. This may take longer
        --verbose      Enable verbose output

Example

$ echo "Hello World" > file1
$ echo "Goodbye World" > file2
$ fdup
Searching /home/user/example
Recursive mode is OFF
Checking hash for file2
Checking hash for file1

No duplicates found!
$ echo "Hello World" > file2
$ fdup
Searching /home/user/example
Recursive mode is OFF
Checking hash for file2
Checking hash for file1

Found 2 identical files
SHA512 E1C112FF908FEBC3B98B1693A6CD3564EAF8E5E6CA629D084D9F0EBA99247CACDD72E369FF8941397C2807409FF66BE64BE908DA17AD7B8A49A2A26C0E8086AA:
- /home/user/example/file1
- /home/user/example/file2

Found 2 duplicates!

Contributing

Contributions are welcome. See CONTRIBUTING.md.

License

fdup is released under the MIT License. See here for more details.