rdfind

Find files with duplicate content and get rid of them. More information: https://rdfind.pauldreik.se.

rdfind -dryrun true path/to/directory

rdfind -makehardlinks true path/to/directory

rdfind -makesymlinks true path/to/directory

rdfind -deleteduplicates true -ignoreempty false path/to/directory