cp: add -a, -d, -p

This commit is contained in:
Hiltjo Posthuma
2014-07-09 21:28:43 +00:00
committed by sin
parent 8e8d8ff242
commit 8b3a9c1971
4 changed files with 97 additions and 30 deletions

12
cp.1
View File

@@ -8,7 +8,7 @@ cp \- copy files and directories
.RI [ name ]
.P
.B cp
.RB [ \-Rr ]
.RB [ \-adpRr ]
.RI [ file ...]
.RI [ directory ]
.SH DESCRIPTION
@@ -17,6 +17,16 @@ copies a given file, naming it the given name. If multiple files are listed
they will be copied into the given directory.
.SH OPTIONS
.TP
.B \-a
preserve mode, timestamp, links and permissions.
Implies \-d, \-p, \-r.
.TP
.B \-d
don't dereference links. preserve links.
.TP
.B \-p
preserve mode, timestamp, links and permissions.
.TP
.B \-f
if an existing destination file cannot be opened, remove it and try again.
.TP