sbase/cp.1
Hiltjo Posthuma f67320ce93 cp: add -v, fix manpage info
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-07-21 16:43:31 +01:00

43 lines
852 B
Groff

.TH CP 1 sbase\-VERSION
.SH NAME
cp \- copy files and directories
.SH SYNOPSIS
.B cp
.RB [ \-Rr ]
.I file
.RI [ name ]
.P
.B cp
.RB [ \-adpRrv ]
.RI [ file ...]
.RI [ directory ]
.SH DESCRIPTION
.B cp
copies a given file, naming it the given name. If multiple files are listed
they will be copied into the given directory.
.SH OPTIONS
.TP
.B \-a
preserve mode, timestamp, links and permissions.
Implies \-d, \-p, \-r.
.TP
.B \-d
don't dereference links. preserve links.
.TP
.B \-p
preserve mode, timestamp and permissions.
.TP
.B \-f
if an existing destination file cannot be opened, remove it and try again.
.TP
.B \-R
equivalent to -r.
.TP
.B \-r
copies directories recursively. If this flag is not specified, directories are
not copied.
.TP
.B \-v
print names of source and destination per file to stdout. In the format:
"source \-> destination".