1FDUPES(1) General Commands Manual FDUPES(1)
2
3
4
6 fdupes - finds duplicate files in a given set of directories
7
9 fdupes [ options ] DIRECTORY ...
10
11
13 Searches the given path for duplicate files. Such files are found by
14 comparing file sizes and MD5 signatures, followed by a byte-by-byte
15 comparison.
16
17
19 -r --recurse
20 for every directory given follow subdirectories encountered
21 within
22
23 -R --recurse:
24 for each directory given after this option follow subdirectories
25 encountered within (note the ':' at the end of option; see the
26 Examples section below for further explanation)
27
28 -s --symlinks
29 follow symlinked directories
30
31 -H --hardlinks
32 normally, when two or more files point to the same disk area
33 they are treated as non-duplicates; this option will change this
34 behavior
35
36 -G --minsize=SIZE
37 consider only files greater than or equal to SIZE in bytes
38
39 -L --maxsize==SIZE
40 consider only files less than or equal to SIZE in bytes
41
42 -n --noempty
43 exclude zero-length files from consideration
44
45 -A --nohidden
46 exclude hidden files from consideration
47
48 -f --omitfirst
49 omit the first file in each set of matches
50
51 -1 --sameline
52 list each set of matches on a single line
53
54 -S --size
55 show size of duplicate files
56
57 -t --time
58 show modification time of duplicate files
59
60 -m --summarize
61 summarize duplicate file information
62
63 -q --quiet
64 hide progress indicator
65
66 -d --delete
67 prompt user for files to preserve, deleting all others (see
68 CAVEATS below)
69
70 -D --deferconfirmation
71 in interactive mode, defer byte-for-byte confirmation of dupli‐
72 cates until just before file deletion
73
74 -P --plain
75 with --delete, use line-based prompt (as with older versions of
76 fdupes) instead of screen-mode interface
77
78 -N --noprompt
79 when used together with --delete, preserve the first file in
80 each set of duplicates and delete the others without prompting
81 the user
82
83 -I --immediate
84 delete duplicates as they are encountered, without grouping into
85 sets; implies --noprompt
86
87 -p --permissions
88 don't consider files with different owner/group or permission
89 bits as duplicates
90
91 -o --order=WORD
92 order files according to WORD: time - sort by modification time,
93 ctime - sort by status change time, name - sort by filename
94
95 -i --reverse
96 reverse order while sorting
97
98 -l --log=LOGFILE
99 log file deletion choices to LOGFILE
100
101 -v --version
102 display fdupes version
103
104 -h --help
105 displays help
106
108 Unless -1 or --sameline is specified, duplicate files are listed to‐
109 gether in groups, each file displayed on a separate line. The groups
110 are then separated from each other by blank lines.
111
112 When -1 or --sameline is specified, spaces and backslash characters
113 (\) appearing in a filename are preceded by a backslash character.
114
115
117 fdupes a --recurse: b
118 will follow subdirectories under b, but not those under a.
119
120 fdupes a --recurse b
121 will follow subdirectories under both a and b.
122
123
125 When using -d or --delete, care should be taken to insure against acci‐
126 dental data loss.
127
128 When used together with options -s or --symlink, a user could acciden‐
129 tally preserve a symlink while deleting the file it points to.
130
131 Furthermore, when specifying a particular directory more than once, all
132 files within that directory will be listed as their own duplicates,
133 leading to data loss should a user preserve a file without its "dupli‐
134 cate" (the file itself!).
135
136
138 Adrian Lopez <adrian2@caribe.net>
139
140
141
142
143 FDUPES(1)