![]() ![]() n, - dryrun true | false Displays what should have been done, don ' t actually delete or link anything. Note that only a few values are supported at present : 0, 1 - 5, 10, 25, 50, 100 mil ‐ liseconds. General options : - sleep Xms Sleeps X milliseconds between reading each file, to reduce load. deleteduplicates true | false Delete ( unlink ) files. outputname name Make the results file name to be "name" instead of the default results. See - dryrun for how to disable deletions. This does not affect whether items are deleted. makeresultsfile true | false Make a results file in the current directory. makehardlinks true | false Replace duplicate files with hard links. Action options : - makesymlinks true | false Replace duplicate files with symbolic links. This makes the behaviour independent of in which order files are listed when querying the file system. deterministic true | false If set ( the default ), sort files of equal rank in an unspecified but deterministic order. checksum md5 | sha1 | sha256 What type of checksum to be used : md5, sha1 or sha256. removeidentinode true | false Removes items found which have identical inode and device ID. followsymlinks true | false Follow symlinks. Default is 0, which means this check is disabled. maxsize N Ignores files with N bytes or more. Default is 1, meaning empty files are ignored. minsize N Ignores files with less than N bytes. ![]() Setting this to true ( the default ) is equivalent to - minsize 1, false is equivalent to - minsize 0. OPTIONS Searching options etc : - ignoreempty true | false Ignore empty files. If disabled, the one that was reported first from the file system is highest ranked. If enabled, which one ranks highest is unspecified but deterministic. This is on by default, see option - deterministic ). ![]() if A and B are found during scanning of the same input argument and share the same directory depth, the one that ranks highest depends on if deterministic operation is enabled. If A was found at a directory depth lower than B, A is higher ranked ( A is closer to the root ). Given two files A and B which have equal size and content, the ranking is as follows : If A was found while scanning an input argument earlier than B, A is higher ranked. The rules of ranking are given below, where the rules are executed from start until an original has been found. RANKING Given two or more equal files, the one with the highest rank is selected to be the original and the rest are duplicates. To include files or directories that have names starting with -, use rdfind. See exam ‐ ples below for how to use find and xargs in conjunction with rdfind. If you need better control over the ranking than given, you can use some preprocessor which sorts the file names in desired order and then run the program using xargs. By default, no action is taken besides creating a file with the detected files and showing the possible amount of saved space. This is done by ranking the files to each other and deciding which has the highest rank. If two ( or more ) equal files are found, the program decides which of them is the original and the rest are considered duplicates. rdfind runs in O ( Nlog ( N ) ) time with N being the number of files. It calculates checksum only if necessary. ĭESCRIPTION rdfind finds duplicate files across and / or within several directories. ![]()
0 Comments
Leave a Reply. |