Skip to content

Recursive Duplicate Finder

Recently I needed quickly a tool which compares two directories file by file and delete duplicate copies on one side. So it checks the source directory with the copy directory file by file. Each file is compared by inode, size and md5sum. If the source file and the copy file have the same md5 hash value (but not the same inode) the file copy could be deleted via the -d parameter or moved with the -m parameter.
At the beginning I found fslint which was to fancy for this task. And at the end of this blog post I found fdupes which seems to do exactly what I needed. I love YAGN programming 😛

Download script

Posted in ubuntu.

Tagged with , , , , .