table of contents
other versions
- jessie-backports 1.6-1~bpo8+1
- stretch 1.7-2+deb9u1
- testing 1.11.1-2
- stretch-backports 1.10.4-1~bpo9+1
- unstable 1.12-1
FDUPES(1) | General Commands Manual | FDUPES(1) |
NAME¶
jdupes - finds and performs actions upon duplicate filesSYNOPSIS¶
jdupes [ options ] DIRECTORY ...DESCRIPTION¶
Searches the given path(s) for duplicate files. Such files are found by comparing file sizes, then partial and full file hashes, followed by a byte-by-byte comparison.OPTIONS¶
- -A --nohidden
- exclude hidden files from consideration
- -B --dedupe
- issue the btrfs same-extents ioctl to trigger a deduplication on disk. The program must be built with btrfs support for this option to be available
- -D --debug
- if this feature is compiled in, show debugging statistics and info at the end of program execution
- -d --delete
- prompt user for files to preserve, deleting all others (see CAVEATS below)
- -f --omitfirst
- omit the first file in each set of matches
- -H --hardlinks
- normally, when two or more files point to the same disk area they are treated as non-duplicates; this option will change this behavior
- -h --help
- displays help
- -i --reverse
- reverse (invert) the sort order of matches
- -I --isolate
- isolate each command-line parameter from one another; only match if the files are under different parameter specifications
- -L --hardlink
- replace all duplicate files with hardlinks to the first file in each set of duplicates
- -m --summarize
- summarize duplicate files information
- -N --noprompt
- when used together with --delete, preserve the first file in each set of duplicates and delete the others without prompting the user
- -n --noempty
- exclude zero-length files from consideration
- -O --paramorder
- parameter order preservation is more important than the chosen sort; this is particularly useful with the -N option to ensure that automatic deletion behaves in a controllable way
- -o --order=WORD
- order files according to WORD: time - sort by modification time name - sort by filename (default)
- -p --permissions
- don't consider files with different owner/group or permission bits as duplicates
- -Q --quick
- [WARNING: RISK OF DATA LOSS, SEE CAVEATS] skip byte-for-byte verification of duplicate pairs (use hashes only)
- -q --quiet
- hide progress indicator
- -R --recurse:
- for each directory given after this option follow subdirectories encountered within (note the ':' at the end of option; see the Examples section below for further explanation)
- -r --recurse
- for every directory given follow subdirectories encountered within
- -S --size
- show size of duplicate files
- -s --symlinks
- follow symlinked directories
- -v --version
- display jdupes version and compilation feature flags
- -x --xsize=[+]SIZE
- exclude files of size less than SIZE from consideration, or if SIZE is prefixed with a '+' i.e. jdupes -x +226 [files] then exclude files larger than SIZE. The following suffixes can be used and are not case-sensitive:
- `K'
- for kilobytes (units of 1024 bytes)
- `M'
- for megabytes (units of 1024 x 1024 bytes)
- `G'
- for gigabytes (units of 1024 x 1024 x 1024 bytes)
- -Z --softabort
- if the user aborts the program (as with CTRL-C) act on the matches that were found before the abort was received. For example, if -L and -Z are specified, all matches found prior to the abort will be hard linked. The default behavior without -Z is to abort without taking any actions.
NOTES¶
A set of arrows are used in hard linking to show what action was taken on each link candidate. These arrows are as follows:- ---->
- This file was successfully hard linked to the first file in the duplicate chain
- -==->
- This file was already a hard link to the first file in the chain
- -//->
- Hard linking this file failed due to an error during the linking process
EXAMPLES¶
- jdupes a --recurse: b
- will follow subdirectories under b, but not those under a.
- jdupes a --recurse b
- will follow subdirectories under both a and b.
- jdupes -O dir1 dir3 dir2
- will always place 'dir1' results first in any match set (where relevant)