Compare media files to check if they're the same?


I’d like to know if exists any method to compare in bulk and detect if 2+ files are exactly the same. I mean, to check if a directory contains the same file with different names. I cannot find anything :sweat:

Thanks for your help!

There isn’t an rclone command for this (though there have been requests!).

I’d start with rclone md5sum and look for identical checksums like this

rclone md5sum remote:path | cut -b-32 | sort -n | uniq -c | grep -v '^ *1 '

then find which files they are with

rclone md5sum remote:path | grep me5sumfromabove