You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 'PR/Benno-23May' of https://github.com/karelzak/util-linux-work:
hardlink: (man,usage) sort the options mostly alphabetically
hardlink: (usage) improve the descriptions of three options
hardlink: (usage) remove mistaken period from two option descriptions
hexdump: (man) put a list item on a single line, to avoid a warning
Copy file name to clipboardExpand all lines: misc-utils/hardlink.1.adoc
+28-27Lines changed: 28 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -65,21 +65,21 @@ For example, *hardlink foo/ bar/* will link files in bar/ to equal files in the
65
65
*-i*, *--include* _regex_::
66
66
A regular expression to include files. If the option *--exclude* has been given, this option re-includes files which would otherwise be excluded. If the option is used without *--exclude*, only files matched by the pattern are included.
67
67
68
+
*-l*, *--list-duplicates*::
69
+
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.
70
+
68
71
*-m*, *--maximize*::
69
72
Among equal files, keep the file with the highest link count.
70
73
71
74
*-M*, *--minimize*::
72
75
Among equal files, keep the file with the lowest link count.
73
76
77
+
*--mount*::
78
+
Do not traverse directories on different filesystems (remain within the same filesystem).
79
+
74
80
*-n*, *--dry-run*::
75
81
Do not act, just print what would happen.
76
82
77
-
*-l*, *--list-duplicates*::
78
-
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.
79
-
80
-
*-z*, *--zero*::
81
-
Separate lines with a NUL instead of a newline in *-l* mode.
82
-
83
83
*-o*, *--ignore-owner*::
84
84
Link and compare files even if their owner information (user and group) differs. Results may be unpredictable.
85
85
@@ -98,6 +98,22 @@ file content block (see *--io-size*), these checksums are cached for the next co
98
98
size is important for large files or a large sets of files of the same size. The default is
99
99
10MiB.
100
100
101
+
*--reflink*[**=**_when_]::
102
+
Create copy-on-write clones (aka reflinks) rather than hardlinks. The reflinked files
103
+
share only on-disk data, but the file mode and owner can be different. It's recommended
104
+
to use this option together with the *--ignore-owner* and *--ignore-mode* options.
105
+
This option implies *--skip-reflinks* to ignore already cloned files.
106
+
+
107
+
The optional argument _when_ can be *never*, *always*, or *auto*. If the _when_ argument
108
+
is omitted, it defaults to *auto*, which means that *hardlink* checks the filesystem type
109
+
and uses reflinks on BTRFS and XFS only, and falls back to hardlinks when creating a
110
+
reflink is impossible.
111
+
The argument *always* disables filesystem-type detection and the fallback to hardlinks,
112
+
which means that only reflinks are allowed.
113
+
114
+
*--skip-reflinks*::
115
+
Ignore already cloned files. This option may be used without *--reflink* when creating classic hardlinks.
116
+
101
117
*-s*, *--minimum-size* _size_::
102
118
The minimum size to consider. By default this is 1, so empty files will not be linked. The _size_ argument may be followed by the multiplicative suffixes KiB (=1024), MiB (=1024*1024), and so on for GiB, TiB, PiB, EiB, ZiB and YiB (the "iB" is optional, e.g., "K" has the same meaning as "KiB").
103
119
@@ -116,33 +132,18 @@ A regular expression that excludes files from being compared and linked. This op
116
132
*--exclude-subtree* _regex_::
117
133
A regular expression that excludes entire directories from being compared and linked. This option can also be used multiple times.
118
134
119
-
*--mount*::
120
-
Do not traverse directories on different filesystems (remain within the same filesystem).
121
-
122
135
*-X*, *--respect-xattrs*::
123
136
Only try to link files with the same extended attributes.
124
137
125
138
*-y*, *--method* _name_::
126
139
Set the file content comparison method. The currently supported methods are
127
-
sha256, sha1, crc32c and memcmp. The default is sha256, or memcmp if Linux
128
-
Crypto API is not available. The methods based on checksums are implemented in
129
-
zero-copy way, in this case file contents are not copied to the userspace and all
130
-
calculation is done in kernel.
131
-
132
-
*--reflink*[**=**_when_]::
133
-
Create copy-on-write clones (aka reflinks) rather than hardlinks. The reflinked files
134
-
share only on-disk data, but the file mode and owner can be different. It's recommended
135
-
to use it with *--ignore-owner* and *--ignore-mode* options. This option implies
136
-
*--skip-reflinks* to ignore already cloned files.
137
-
+
138
-
The optional argument _when_ can be *never*, *always*, or *auto*. If the _when_ argument
139
-
is omitted, it defaults to *auto*, in this case, *hardlink* checks filesystem type and
140
-
uses reflinks on BTRFS and XFS only, and fallback to hardlinks when creating reflink is impossible.
141
-
The argument *always* disables filesystem type detection and fallback to hardlinks, in this case,
142
-
only reflinks are allowed.
140
+
*sha256*, *sha1*, *crc32c*, and *memcmp*. The default is *sha256*, or *memcmp* if the
141
+
Linux Crypto API is not available. The methods based on checksums are implemented in
142
+
a zero-copy way, which means that file contents are not copied to userspace and all
143
+
calculation is done in the kernel.
143
144
144
-
*--skip-reflinks*::
145
-
Ignore already cloned files. This option may be used without *--reflink* when creating classic hardlinks.
145
+
*-z*, *--zero*::
146
+
Separate lines with a NUL byte instead of a newline (for *-l*).
Copy file name to clipboardExpand all lines: text-utils/hexdump.1.adoc
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -118,8 +118,7 @@ The format is required and must be surrounded by double quote (" ") marks. It is
118
118
119
119
. An asterisk (*) may not be used as a field width or precision.
120
120
121
-
. A byte count or field precision _is_ required for each *s* conversion character
122
-
(unlike the *fprintf*(3) default which prints the entire string if the precision is unspecified).
121
+
. A byte count or field precision _is_ required for each *s* conversion character (unlike the *fprintf*(3) default which prints the entire string if the precision is unspecified).
123
122
124
123
. The conversion characters *h*, *l*, *n*, *p*, and *q* are not supported.
0 commit comments