manual page distributed with 4.2BSD
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 30 Apr 1985 05:20:27 +0000 (21:20 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 30 Apr 1985 05:20:27 +0000 (21:20 -0800)
SCCS-vsn: bin/cp/cp.1 5.1

usr/src/bin/cp/cp.1

index f8629ca..ab5105a 100644 (file)
@@ -2,9 +2,9 @@
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
-.\"    @(#)cp.1        4.1 (Berkeley) %G%
+.\"    @(#)cp.1        5.1 (Berkeley) %G%
 .\"
 .\"
-.TH CP 1 
+.TH CP 1 "1 April 1982"
 .UC 4
 .SH NAME
 cp \- copy
 .UC 4
 .SH NAME
 cp \- copy
@@ -12,11 +12,15 @@ cp \- copy
 .B cp
 [
 .B \-i
 .B cp
 [
 .B \-i
+] [
+.B \-r
 ] file1 file2
 .PP
 .B cp
 [
 .B \-i
 ] file1 file2
 .PP
 .B cp
 [
 .B \-i
+] [
+.B \-r
 ] file ... directory
 .SH DESCRIPTION
 .I File1
 ] file ... directory
 .SH DESCRIPTION
 .I File1
@@ -47,5 +51,12 @@ overwritten. An answer of 'y' will cause
 .I cp
 to continue. Any other answer will prevent it
 from overwriting the file.
 .I cp
 to continue. Any other answer will prevent it
 from overwriting the file.
+.PP
+If the
+.B \-r
+option is specified and any of the source files are directories,
+.I cp
+copies each subtree rooted at that name; in this case
+the destination must be a directory.
 .SH "SEE ALSO"
 cat(1), pr(1), mv(1)
 .SH "SEE ALSO"
 cat(1), pr(1), mv(1)