diff options
Diffstat (limited to 'misc-utils/hardlink.1')
-rw-r--r-- | misc-utils/hardlink.1 | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/misc-utils/hardlink.1 b/misc-utils/hardlink.1 index c7500b5a9..c564fd76a 100644 --- a/misc-utils/hardlink.1 +++ b/misc-utils/hardlink.1 @@ -2,8 +2,9 @@ .SH "NAME" hardlink \- Consolidate duplicate files via hardlinks .SH "SYNOPSIS" -.PP -\fBhardlink\fP [\fB-c\fP] [\fB-n\fP] [\fB-v\fP] [\fB-vv\fP] [\fB-x pattern\fP] [\fB-h\fP] directory1 [ directory2 ... ] +.B hardlink +[options] +.RI [ directory ...] .SH "DESCRIPTION" .PP This manual page documents \fBhardlink\fP, a @@ -20,29 +21,37 @@ on a single filesystem contain many duplicate files. Since hard links can only span a single filesystem, \fBhardlink\fP is only useful when all directories specified are on the same filesystem. .SH "OPTIONS" -.PP -.IP "\fB-c\fP" 10 +.TP +.BR \-c , " \-\-content" Compare only the contents of the files being considered for consolidation. Disregards permission, ownership and other differences. -.IP "\fB-f\fP" 10 +.TP +.BR \-f , " \-\-force" Force hardlinking across file systems. -.IP "\fB-n\fP" 10 +.TP +.BR \-n , " \-\-dry\-run" Do not perform the consolidation; only print what would be changed. -.IP "\fB-v\fP" 10 -Print summary after hardlinking. -.IP "\fB-vv\fP" 10 -Print every hardlinked file and bytes saved. Also print summary after hardlinking. -.IP "\fB-x pattern\fP" 10 +.TP +.BR \-v , " \-\-verbose" +Print summary after hardlinking. The option may be specified more than once. In +this case (e.g. \fB-vv\fP) it prints every hardlinked file and bytes saved. +.TP +.BR \-x , " \-\-exclude " \fIregex\f Exclude files and directories matching pattern from hardlinking. -.IP "\fB-h\fP" 10 -Show help. -.PP +.sp The optional pattern for excluding files and directories must be a PCRE2 compatible regular expression. Only the basename of the file or directory is checked, not its path. Excluded directories' contents will not be examined. +.TP +.BR \-h , " \-\-help" +Display help text and exit. +.TP +.BR \-V , " \-\-version" +Display version information and exit. .SH "AUTHOR" .PP -\fBhardlink\fP was written by Jakub Jelinek <jakub@redhat.com>. +\fBhardlink\fP was written by Jakub Jelinek <jakub@redhat.com> and later modified by +Ruediger Meier <ruediger.meier@ga-group.nl> and Karel Zak <kzak@redhat.com> for util-linux. .PP Man page written by Brian Long and later updated by Jindrich Novy <jnovy@redhat.com> .SH "BUGS" |