1 .TH "FINDDUP" 1 "Mar 2010" "Francois Fleuret" "User Commands"
3 \" This man page was written by Francois Fleuret <francois@fleuret.org>
4 \" and is distributed under a Creative Commons Attribution-Share Alike
9 finddup \- Find files common to two directories (or not)
13 \fBfinddup\fP [OPTION]... DIR1 [[and:|not:]DIR2]
17 With a single directory argument, \fBfinddup\fP prints the duplicated
20 With two directories, it prints either the files common to both DIR1
21 and DIR2 or, with the `not:' prefix, the ones present in DIR1 and not
22 in DIR2. The and: prefix is assumed by default and necessary only if
23 you have a directory name starting with `not:'.
25 This command compares files by first comparing their sizes, hence goes
28 When looking for identical files, \fBfinddup\fP associates a group ID
29 to every content, and prints it along the file names. Use the \fB-g\fP
34 is virtually the same as
39 \fB-h\fR, \fB--help\fR
42 \fB-d\fR, \fB--ignore-dots\fR
43 ignore files and directories starting with a dot
45 \fB-0\fR, \fB--ignore-empty\fR
48 \fB-c\fR, \fB--hide-matchings\fR
49 do not show which files from DIR2 corresponds to files from DIR1
50 (hence, show only the files from DIR1 which have an identical twin in
53 \fB-g\fR, \fB--no-group-ids\fR
54 do not show the file group IDs
56 \fB-p\fR, \fB--show-progress\fR
57 show progress information in stderr
59 \fB-r\fR, \fB--real-paths\fR
60 show the real path of the files
62 \fB-i\fR, \fB--same-inodes-are-different\fR
63 files with same inode are considered as different
70 None known, probably many. Valgrind does not complain though.
72 The MD5 hashing often hurts more than it helps, hence it is off by
73 default. The only case when it should really be useful is when you
74 have plenty of different files of same size, which does not happen
79 The format of the output should definitely be improved. Not clear how.
81 Their could be some fancy option to link two instances of the command
82 running on different machines to reduce network disk accesses. Again,
83 this may not help much, for the reason given above.
90 List duplicated files in directory ./blah/, show a progress bar,
91 ignore empty files, and ignore files and directories starting with a
95 .B finddup sources not:/mnt/backup
98 List all files found in \fB./sources/\fR which do not have
99 content-matching equivalent in \fB/mnt/backup/\fR.
102 .B finddup -g tralala cuicui
105 List groups of files with same content which exist both in
106 \fB./tralala/\fR and \fB./cuicui/\fR. Do not show group IDs, instead
107 write an empty lines between groups of files of same content.
111 Written by Francois Fleuret <francois@fleuret.org> and distributed
112 under the terms of the GNU General Public License version 3 as
113 published by the Free Software Foundation. This is free software: you
114 are free to change and redistribute it. There is NO WARRANTY, to the
115 extent permitted by law.