HARDLINK(1) HARDLINK(1) hardlink - hardlink [options] directory|file... hardlink ,,--", . hardlink . . memcmp . ( SHA256) , . ,," (32 ). -. ,," . -c, --content , , . -pot. -b, --io-size read(2) sendfile(2) . KiB, MiB, . ,,iB" , ., ,,K" ,,KiB". 8KiB ,,memcmp" 1MiB . ,,memcmp" , / . . -d, --respect-dir . ( hardlink) . , hardlink --respect-dir /foo /bar /foo// /bar//, /bar//. --respect-name, ( ). -f, --respect-name (). -f hardlink . -F, --prioritize-trees Keep files found in the earliest specified top-level directory if there are multiple identical files in different trees. For example, hardlink foo/ bar/ will link files in bar/ to equal files in the foo/ directory. -i, --include _ . --exclude , . --exclude, . -m, --maximize , . -M, --minimize , . -n, --dry-run , . -l, --list-duplicates Don't link anything, but list the absolute path of every duplicate file, one per line, preceded by a unique 16-byte discriminator and a tab. -z, --zero Separate lines with a NUL instead of a newline in -l mode. -o, --ignore-owner ( ) . . -O, --keep-oldest , ( ) , . --maximize --minimize, . -p, --ignore-mode . . -q, --quiet , . -r, --cashe-size . -,,memcmp" ( --io-size), . . 10MiB. -s, --minimum-size . 1, . KiB (=1024), MiB (=1024*1024), GiB, TiB, PiB, EiB, ZiB YiB. (,,iB" , ., ,,K" ,,KiB"). -S, --maximum-size . 0, 0 . KiB (=1024), MiB (=1024*1024), GiB, TiB, PiB, EiB, ZiB YiB. (,,iB" , ., ,,K" ,,KiB"). -t, --ignore-time . . -v, --verbose , , . , , , . -x, --exclude _ A regular expression that excludes files from being compared and linked. This option can be used multiple times. --exclude-subtree regex A regular expression that excludes entire directories from being compared and linked. This option can also be used multiple times. --mount Do not traverse directories on different filesystems (remain within the same filesystem). -X, --respect-xattrs . -y, --method . ,,sha256", ,,sha1", ,,crc32c" ,,memcmp". ,,sha256", ,,memcmp" ,,Linux Crypto API" . , . --reflink[=when] (. ) . , . --ignore-owner --ignore-mode. --skip-reflinks . never (), always (), auto. , auto, , hardlink BTRFS XFS, . always , , . --skip-reflinks . --reflink . -h, --help . -V, --version Display version and exit. hardlink . hardlink- -f . hardlink-. hardlink . , . , , hardlink . , . hardlink . hardlink-. , ,,util-linux" v2.34 v2.36. . For bug reports, use the issue tracker . hardlink ,,util-linux" . util-linux 2.41 2025-03-29 HARDLINK(1)