sbase/cp.1

58 lines
1.1 KiB
Groff
Raw Normal View History

.Dd January 30, 2015
.Dt CP 1
.Os sbase
.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 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 .
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl a
2015-02-01 14:52:28 -05:00
Preserve mode, timestamp, links and permissions. Implies
.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-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).
.It Fl P
2015-02-01 14:52:28 -05:00
Don't dereference symbolic links.
.It Fl p
2015-02-01 14:52:28 -05:00
Preserve mode, timestamp and permissions.
.It Fl R
2015-02-01 14:52:28 -05:00
Equivalent to -r.
.It Fl r
2015-02-01 14:52:28 -05:00
Copies directories recursively. If this flag is not specified, directories
are not copied.
.It Fl v
2015-02-01 14:52:28 -05:00
Print names of source and destination per file to stdout. In the format:
"source \-> destination".
.El
.Sh SEE ALSO
.Xr mv 1