fdup/README.md

37 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2025-02-10 22:59:23 +03:00
# fdup
2025-02-15 00:22:34 +03:00
The dumb tool for finding duplicate files by their hash sums.
2025-02-10 22:59:23 +03:00
Compile it with `-prod` for better performance:
```console
$ v -prod .
```
Look at releases page for prebuilt executables.
# Synonsis
```
2025-02-15 00:22:34 +03:00
Usage: fdup [flags] [commands] [DIR...]
2025-02-10 22:59:23 +03:00
File duplicates finder
Flags:
2025-02-15 00:22:34 +03:00
-hash Hashing algorythm: blake3, crc32, fnv1a, sha1, sha256, md5 [default: fnv1a]
2025-02-10 22:59:23 +03:00
-threads Number of threads used for calculating hash sums [default: number of CPU cores]
2025-02-15 00:22:34 +03:00
-brief Brief output, print plain easy to parse hashes and filenames only.
-json Print output in JSON format.
-exclude Glob pattern to exclude files and directories [can be passed multiple times]
-skip-empty Skip empty files.
-max-size Maximum file size in bytes. Files larger than this will be skipped.
-remove Remove duplicates.
-prompt Prompt before every removal.
2025-02-10 22:59:23 +03:00
-help Prints help information.
-version Prints version information.
Commands:
help Prints help information.
version Prints version information.
```