2015-01-30 21:07:17 +00:00
|
|
|
.Dd January 30, 2015
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt CP 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2015-01-30 21:07:17 +00: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-02-01 19:52:28 +00:00
|
|
|
copies a given
|
|
|
|
.Ar file ,
|
|
|
|
naming it the given
|
|
|
|
.Ar name .
|
|
|
|
If multiple
|
|
|
|
.Ar files
|
|
|
|
are listed
|
|
|
|
they will be copied into the given
|
|
|
|
.Ar directory .
|
2015-01-30 21:07:17 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl a
|
2015-02-01 19:52:28 +00:00
|
|
|
Preserve mode, timestamp, links and permissions. Implies
|
2015-01-30 21:07:17 +00:00
|
|
|
.Fl d ,
|
|
|
|
.Fl p
|
|
|
|
and
|
|
|
|
.Fl r .
|
2015-02-01 19:52:28 +00:00
|
|
|
.It Fl f
|
|
|
|
If an existing destination file cannot be opened, remove it and try again.
|
2015-01-30 21:07:17 +00:00
|
|
|
.It Fl P
|
2015-02-01 19:52:28 +00:00
|
|
|
Don't dereference symbolic links.
|
2015-01-30 21:07:17 +00:00
|
|
|
.It Fl p
|
2015-02-01 19:52:28 +00:00
|
|
|
Preserve mode, timestamp and permissions.
|
2015-01-30 21:07:17 +00:00
|
|
|
.It Fl R
|
2015-02-01 19:52:28 +00:00
|
|
|
Equivalent to -r.
|
2015-01-30 21:07:17 +00:00
|
|
|
.It Fl r
|
2015-02-01 19:52:28 +00:00
|
|
|
Copies directories recursively. If this flag is not specified, directories
|
2015-01-31 13:43:27 +00:00
|
|
|
are not copied.
|
2015-01-30 21:07:17 +00:00
|
|
|
.It Fl v
|
2015-02-01 19:52:28 +00:00
|
|
|
Print names of source and destination per file to stdout. In the format:
|
2014-07-10 20:30:30 +00:00
|
|
|
"source \-> destination".
|
2015-01-30 21:07:17 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mv 1
|