2015-01-30 16:07:17 -05:00
|
|
|
.Dd January 30, 2015
|
2015-01-31 08:20:02 -05:00
|
|
|
.Dt CP 1
|
2015-01-31 14:37:03 -05:00
|
|
|
.Os sbase
|
2015-01-30 16:07:17 -05:00
|
|
|
.Sh NAME
|
|
|
|
.Nm cp
|
|
|
|
.Nd copy files and directories
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl Rr
|
|
|
|
.Ar file
|
|
|
|
.Op Ar name
|
|
|
|
.Nm
|
|
|
|
.Op Fl aPpRrv
|
|
|
|
.Op Ar file ...
|
|
|
|
.Op Ar directory
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-01-31 08:43:27 -05:00
|
|
|
copies a given file, naming it the given name. If multiple files are listed
|
2012-01-30 17:41:33 -05:00
|
|
|
they will be copied into the given directory.
|
2015-01-30 16:07:17 -05:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl a
|
|
|
|
preserve mode, timestamp, links and permissions. Implies
|
|
|
|
.Fl d ,
|
|
|
|
.Fl p
|
|
|
|
and
|
|
|
|
.Fl r .
|
|
|
|
.It Fl P
|
2014-12-07 22:25:24 -05:00
|
|
|
don't dereference symbolic links.
|
2015-01-30 16:07:17 -05:00
|
|
|
.It Fl p
|
2014-07-10 16:30:30 -04:00
|
|
|
preserve mode, timestamp and permissions.
|
2015-01-30 16:07:17 -05:00
|
|
|
.It Fl f
|
2014-05-05 09:58:14 -04:00
|
|
|
if an existing destination file cannot be opened, remove it and try again.
|
2015-01-30 16:07:17 -05:00
|
|
|
.It Fl R
|
2013-12-12 08:27:49 -05:00
|
|
|
equivalent to -r.
|
2015-01-30 16:07:17 -05:00
|
|
|
.It Fl r
|
2015-01-31 08:43:27 -05:00
|
|
|
copies directories recursively. If this flag is not specified, directories
|
|
|
|
are not copied.
|
2015-01-30 16:07:17 -05:00
|
|
|
.It Fl v
|
2014-07-10 16:30:30 -04:00
|
|
|
print names of source and destination per file to stdout. In the format:
|
|
|
|
"source \-> destination".
|
2015-01-30 16:07:17 -05:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mv 1
|