summaryrefslogtreecommitdiff
path: root/bin/cp/cp.1
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-09-23 19:27:36 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-09-23 19:27:36 +0000
commit0b3cffa8e3a7afa1b7d394f58b9b27afb19d218b (patch)
tree71983af25f3bd00719a2dc04b53217ba8040c892 /bin/cp/cp.1
parent21611aef5b4f2f867d00c98f0395ea3162d82230 (diff)
Add EXAMPLES.
Diffstat (limited to 'bin/cp/cp.1')
-rw-r--r--bin/cp/cp.123
1 files changed, 22 insertions, 1 deletions
diff --git a/bin/cp/cp.1 b/bin/cp/cp.1
index 2c7d076211e..1d478e4a6a5 100644
--- a/bin/cp/cp.1
+++ b/bin/cp/cp.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cp.1,v 1.12 1999/09/23 02:59:37 aaron Exp $
+.\" $OpenBSD: cp.1,v 1.13 1999/09/23 19:27:35 aaron Exp $
.\" $NetBSD: cp.1,v 1.9 1995/07/25 19:36:45 jtc Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993, 1994
@@ -183,6 +183,27 @@ command's actions are determined by the last one specified.
The
.Nm
utility exits 0 on success or >0 if an error occurred.
+.Sh EXAMPLES
+Make a copy of file
+.Pa foo
+named
+.Pa bar :
+.Pp
+.D1 Ic cp foo bar
+.Pp
+Copy a group of files to the
+.Pa /tmp
+directory:
+.Pp
+.D1 Ic cp *.txt /tmp
+.Pp
+Copy the directory
+.Pa junk ,
+and all of its contents (including any subdirectories) to the
+.Pa /tmp
+directory:
+.Pp
+.D1 Ic cp -R junk /tmp
.Sh COMPATIBILITY
Historic versions of the
.Nm