2012-01-30 22:41:33 +00:00
|
|
|
.TH CP 1 sbase\-VERSION
|
|
|
|
.SH NAME
|
|
|
|
cp \- copy files and directories
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B cp
|
2013-12-12 13:27:49 +00:00
|
|
|
.RB [ \-Rr ]
|
2012-01-30 22:41:33 +00:00
|
|
|
.I file
|
|
|
|
.RI [ name ]
|
|
|
|
.P
|
|
|
|
.B cp
|
2014-07-10 20:30:30 +00:00
|
|
|
.RB [ \-adpRrv ]
|
2012-01-30 22:41:33 +00:00
|
|
|
.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
|
2014-07-09 21:28:43 +00:00
|
|
|
.B \-a
|
|
|
|
preserve mode, timestamp, links and permissions.
|
|
|
|
Implies \-d, \-p, \-r.
|
|
|
|
.TP
|
|
|
|
.B \-d
|
|
|
|
don't dereference links. preserve links.
|
|
|
|
.TP
|
|
|
|
.B \-p
|
2014-07-10 20:30:30 +00:00
|
|
|
preserve mode, timestamp and permissions.
|
2014-07-09 21:28:43 +00:00
|
|
|
.TP
|
2014-05-05 13:58:14 +00:00
|
|
|
.B \-f
|
|
|
|
if an existing destination file cannot be opened, remove it and try again.
|
|
|
|
.TP
|
2013-12-12 13:27:49 +00:00
|
|
|
.B \-R
|
|
|
|
equivalent to -r.
|
|
|
|
.TP
|
2012-01-30 22:41:33 +00:00
|
|
|
.B \-r
|
|
|
|
copies directories recursively. If this flag is not specified, directories are
|
|
|
|
not copied.
|
2014-07-10 20:30:30 +00:00
|
|
|
.TP
|
|
|
|
.B \-v
|
|
|
|
print names of source and destination per file to stdout. In the format:
|
|
|
|
"source \-> destination".
|