From 04d3a81efc4907d720b4ab4576f6c705c612f48f Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Mon, 29 Apr 1985 21:20:27 -0800 Subject: [PATCH] manual page distributed with 4.2BSD SCCS-vsn: bin/cp/cp.1 5.1 --- usr/src/bin/cp/cp.1 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/usr/src/bin/cp/cp.1 b/usr/src/bin/cp/cp.1 index f8629ca0ab..ab5105a6eb 100644 --- a/usr/src/bin/cp/cp.1 +++ b/usr/src/bin/cp/cp.1 @@ -2,9 +2,9 @@ .\" 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 @@ -12,11 +12,15 @@ cp \- copy .B cp [ .B \-i +] [ +.B \-r ] file1 file2 .PP .B cp [ .B \-i +] [ +.B \-r ] 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. +.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) -- 2.20.1