An ultimate CLI duplicate file finder and remover!
Watch the video tutorial on YouTube: https://www.youtube.com/watch?v=qdoLNcz_zYg
Boost and OpenSSL libraries are used for reading the files and computing the hashes.
On Ubuntu/Debian install these libraries with:
sudo apt install libboost-iostreams-dev libssl-dev
mkdir build
cd build/
cmake ..
cmake --build .
g++ main.cpp -o dubdog -O3 -s -llibboost_iostreams-mt -lssl -lcrypto
dubdog path extensions [options]
Options:
-a [md5]|crc32|fso hash algorithm
-t count threads count
-v view only (don't ask for file removal)
extensions
is a comma separated list of file's extensions.
For example when running on Windows you may run:
dubdog 'C:\Books' pdf,djvu,epub,fb2
Current version compares files by file's MD5 hash by default. Optionally it's possible to use -a hash
in command line:
-a crc32
is for CRC32 hash-a fso
is comparison by "file size only". It's not a hash algorithm but it's very fast while it may produce many duplicates.