LinuxCommandLibrary

fclones

high-performance duplicate file finder

TLDR

Find duplicate files

$ fclones group [directory]
copy
Remove duplicates interactively
$ fclones group [directory] | fclones remove
copy
Find duplicates by content
$ fclones group --depth [2] [directory]
copy
Show duplicate statistics
$ fclones group [directory] --format fdupes
copy
Move duplicates to directory
$ fclones group [directory] | fclones move [trash_dir]
copy

SYNOPSIS

fclones command [options] [paths...]

DESCRIPTION

fclones is a high-performance duplicate file finder written in Rust. It uses multiple algorithms including hash-based comparison and parallel processing for fast scanning of large file systems.
The tool works in two phases: finding duplicates with 'group' and acting on them with remove, link, or move. Output can be piped between commands or saved for review before action.
fclones optimizes for speed with techniques like partial hashing, caching, and SIMD acceleration.

PARAMETERS

COMMAND

Operation: group, remove, link, move.
PATHS
Directories or files to scan.
--depth N
Maximum directory depth.
--min SIZE
Minimum file size.
--max SIZE
Maximum file size.
--format FORMAT
Output format: default, fdupes, csv, json.
-R, --follow-links
Follow symbolic links.
--threads N
Number of threads.
--help
Display help information.

CAVEATS

Requires careful review before removal. Hard linking changes all copies. Large directories may use significant memory.

HISTORY

fclones was created as a modern alternative to tools like fdupes, emphasizing performance through Rust's speed and memory safety. It achieves significant speedups through parallelism and optimized hashing.

SEE ALSO

fdupes(1), rmlint(1), jdupes(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community