summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-04-25 07:15:58 +1200
committerLars Wirzenius <liw@liw.fi>2010-04-25 07:15:58 +1200
commit805a153ad6c5910589b88140718f8ae276e041b2 (patch)
tree366a8e47214a565627ffb2170d0200d06007ae13
parent626248d5a81c7bdc76655da0aafa02ed3ae64186 (diff)
downloaddupfiles-805a153ad6c5910589b88140718f8ae276e041b2.tar.gz
Add a rudimentary manpage.
-rw-r--r--dupfiles.149
1 files changed, 49 insertions, 0 deletions
diff --git a/dupfiles.1 b/dupfiles.1
new file mode 100644
index 0000000..5cf9b35
--- /dev/null
+++ b/dupfiles.1
@@ -0,0 +1,49 @@
+.\" Copyright 2010 Lars Wirzenius <liw@liw.fi>
+.\"
+.\" This program is free software: you can redistribute it and/or modify
+.\" it under the terms of the GNU General Public License as published by
+.\" the Free Software Foundation, either version 3 of the License, or
+.\" (at your option) any later version.
+.\"
+.\" This program is distributed in the hope that it will be useful,
+.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
+.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+.\" GNU General Public License for more details.
+.\"
+.\" You should have received a copy of the GNU General Public License
+.\" along with this program. If not, see <http://www.gnu.org/licenses/>.
+.\"
+.TH DUPFILES 1
+.SH NAME
+dupfiles \- find identical files and optionally hardlink them
+.SH SYNOPSIS
+.B dupfiles
+.RB [ --make-hardlinks ]
+.RB [ --progress ]
+.SH DESCRIPTION
+.B dupfiles
+finds files that have identical content.
+By default, it writes out the names of the files,
+grouped together,
+with groups separated by empty lines.
+.PP
+It can optionally hardlink the files so that they use less disk space.
+Note that after hardlinking, the files are the same file:
+if you modify one, both names show the modified file.
+Thus, if you the files should not be the same file, but just copies of
+each other, do not hardlink them together.
+.SH OPTIONS
+.TP
+.BR --progress
+Report progress while program is running.
+.TP
+.BR --make-hardlinks
+Instead of reporting files that have been found,
+make sure all names point at the same content.
+FIXME.
+.SH EXAMPLE
+To find all duplicate packages in Debian and Ubuntu:
+.IP
+dupfiles /mirrors/debian /mirrors/ubuntu
+.SH "SEE ALSO"
+.BR fdupes (1).