rdfind icon indicating copy to clipboard operation
rdfind copied to clipboard

Mention in man page that directories are recursed

Open midenok opened this issue 5 years ago • 4 comments

How to hardlink duplicates on whole filesystem?

midenok avatar Oct 25 '19 07:10 midenok

Does using / as path solve your problem?

pauldreik avatar Oct 25 '19 14:10 pauldreik

I didn't try yet. But from help it is not clear whether it does recurse or not.

midenok avatar Oct 30 '19 17:10 midenok

And how fast is the algorithm in that case? Whether it does checksum first and then sorts them?

midenok avatar Oct 30 '19 17:10 midenok

I didn't try yet. But from help it is not clear whether it does recurse or not.

You are right, the man page actually does not say that it does a recursive search! I will hijack this bug for this purpose.

And how fast is the algorithm in that case? Whether it does checksum first and then sorts them?

This is described in https://github.com/pauldreik/rdfind#algorithm The actual speed depends on how fast your filesystem is and how many duplicates you have. If all your files have distinct sizes, scanning is almost as fast as running find /. If you have a lot of duplicate sizes, it has to read at least the first part of each file, which is a lot slower. And if you have lots of equally sized files which are or seem like duplicates, it will have to checksum the contents, which is as fast as sha1sum.

pauldreik avatar Oct 30 '19 18:10 pauldreik