2015-02-17 11:13:45 -05:00
|
|
|
.Dd February 17, 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
|
2015-02-17 11:13:45 -05:00
|
|
|
.Op Fl afpv
|
|
|
|
.Oo
|
|
|
|
.Fl R
|
|
|
|
.Op Fl H | L | P
|
|
|
|
.Oc
|
2015-01-30 16:07:17 -05:00
|
|
|
.Op Ar file ...
|
|
|
|
.Op Ar directory
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-02-01 14:52:28 -05: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 16:07:17 -05:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl a
|
2015-02-01 14:52:28 -05:00
|
|
|
Preserve mode, timestamp, links and permissions. Implies
|
2015-01-30 16:07:17 -05:00
|
|
|
.Fl d ,
|
|
|
|
.Fl p
|
|
|
|
and
|
|
|
|
.Fl r .
|
2015-02-01 14:52:28 -05:00
|
|
|
.It Fl f
|
|
|
|
If an existing destination file cannot be opened, remove it and try again.
|
2015-02-17 11:13:45 -05:00
|
|
|
.It Fl p
|
|
|
|
Preserve mode, timestamp and permissions.
|
|
|
|
.It Fl v
|
|
|
|
Print names of source and destination per file to stdout. In the format:
|
|
|
|
"source \-> destination".
|
|
|
|
.It Fl R
|
|
|
|
Copies directories recursively. If this flag is not specified, directories
|
|
|
|
are not copied.
|
2015-02-09 16:11:06 -05:00
|
|
|
.It Fl H
|
|
|
|
Only dereference symbolic links that are passed as command line arguments when
|
|
|
|
recursively traversing directories.
|
|
|
|
.It Fl L
|
|
|
|
Always dereference symbolic links while recursively traversing directories
|
|
|
|
(default).
|
2015-01-30 16:07:17 -05:00
|
|
|
.It Fl P
|
2015-02-01 14:52:28 -05:00
|
|
|
Don't dereference symbolic links.
|
2015-01-30 16:07:17 -05:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mv 1
|