Download

 

Download

Go to release page to download the latest AppImage build.

How to use it

In terminal

chmod +x ./*.AppImage



 


Usage


rdfind [options] directory_or_file_1 [directory_or_file_2] [directory_or_file_3] ...


Without options, a results file will be created in the current directory. For full options, see the man page.


Examples

Basic example, taken from a *nix environment: Look for duplicate files in directory /home/pauls/bilder:


$ rdfind /home/pauls/bilder/

Now scanning "/home/pauls/bilder", found 3301 files.

Now have 3301 files in total.

Removed 0 files due to nonunique device and inode.

Now removing files with zero size...removed 3 files

Total size is 2861229059 bytes or 3 Gib

Now sorting on size:removed 3176 files due to unique sizes.122 files left.

Now eliminating candidates based on first bytes:removed 8 files.114 files left.

Now eliminating candidates based on last bytes:removed 12 files.102 files left.

Now eliminating candidates based on md5 checksum:removed 2 files.100 files left.

It seems like you have 100 files that are not unique

Totally, 24 Mib can be reduced.

Now making results file results.txt

It indicates there are 100 files that are not unique. Let us examine them by looking at the newly created results.txt:


$ cat results.txt

# Automatically generated

# duptype id depth size device inode priority name

DUPTYPE_FIRST_OCCURENCE 960 3 4872 2056 5948858 1 /home/pauls/bilder/digitalkamera/horisontbild/.xvpics/test 001.jpg.gtmp.jpg

DUPTYPE_WITHIN_SAME_TREE -960 3 4872 2056 5932098 1 /home/pauls/bilder/digitalkamera/horisontbild/.xvpics/test 001.jpg

.

(intermediate rows removed)

.

DUPTYPE_FIRST_OCCURENCE 1042 2 7904558 2056 6209685 1 /home/pauls/bilder/digitalkamera/skridskotur040103/skridskotur040103 014.avi

DUPTYPE_WITHIN_SAME_TREE -1042 3 7904558 2056 327923 1 /home/pauls/bilder/digitalkamera/saknat/skridskotur040103/skridskotur040103 014.avi

Consider the last two rows. It says that the file skridskotur040103 014.avi exists both in /home/pauls/bilder/digitalkamera/skridskotur040103/ and /home/pauls/bilder/digitalkamera/saknat/skridskotur040103/. I can now remove the one I consider a duplicate by hand if I want to.


Kommentare