cp.1: convert to mandoc, add mv(1) to SEE ALSO

This commit is contained in:
Hiltjo Posthuma 2015-01-30 22:07:17 +01:00
parent 481ed596ff
commit 987152a7d7
1 changed files with 34 additions and 32 deletions

66
cp.1
View File

@ -1,42 +1,44 @@
.TH CP 1 sbase\-VERSION .Dd January 30, 2015
.SH NAME .Dt CP 1 sbase\-VERSION
cp \- copy files and directories .Os
.SH SYNOPSIS .Sh NAME
.B cp .Nm cp
.RB [ \-Rr ] .Nd copy files and directories
.I file .Sh SYNOPSIS
.RI [ name ] .Nm
.P .Op Fl Rr
.B cp .Ar file
.RB [ \-aPpRrv ] .Op Ar name
.RI [ file ...] .Nm
.RI [ directory ] .Op Fl aPpRrv
.SH DESCRIPTION .Op Ar file ...
.B cp .Op Ar directory
.Sh DESCRIPTION
.Nm
copies a given file, naming it the given name. If multiple files are listed copies a given file, naming it the given name. If multiple files are listed
they will be copied into the given directory. they will be copied into the given directory.
.SH OPTIONS .Sh OPTIONS
.TP .Bl -tag -width Ds
.B \-a .It Fl a
preserve mode, timestamp, links and permissions. preserve mode, timestamp, links and permissions. Implies
Implies \-d, \-p, \-r. .Fl d ,
.TP .Fl p
.B \-P and
.Fl r .
.It Fl P
don't dereference symbolic links. don't dereference symbolic links.
.TP .It Fl p
.B \-p
preserve mode, timestamp and permissions. preserve mode, timestamp and permissions.
.TP .It Fl f
.B \-f
if an existing destination file cannot be opened, remove it and try again. if an existing destination file cannot be opened, remove it and try again.
.TP .It Fl R
.B \-R
equivalent to -r. equivalent to -r.
.TP .It Fl r
.B \-r
copies directories recursively. If this flag is not specified, directories are copies directories recursively. If this flag is not specified, directories are
not copied. not copied.
.TP .It Fl v
.B \-v
print names of source and destination per file to stdout. In the format: print names of source and destination per file to stdout. In the format:
"source \-> destination". "source \-> destination".
.El
.Sh SEE ALSO
.Xr mv 1