diff options
author | joel <joel@FreeBSD.org> | 2013-03-15 20:12:54 +0000 |
---|---|---|
committer | joel <joel@FreeBSD.org> | 2013-03-15 20:12:54 +0000 |
commit | 2ba67e203aad1ffa4650449d05e44a2b61e99ad6 (patch) | |
tree | 33ce444ce5867809f8179d3cfcb13267eb94e1c0 /bin/cp | |
parent | 90b1ba3bc42c541bb65e1492274cdbdeca8d1dea (diff) | |
download | FreeBSD-src-2ba67e203aad1ffa4650449d05e44a2b61e99ad6.zip FreeBSD-src-2ba67e203aad1ffa4650449d05e44a2b61e99ad6.tar.gz |
Add a few examples.
Obtained from: OpenBSD
Diffstat (limited to 'bin/cp')
-rw-r--r-- | bin/cp/cp.1 | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/bin/cp/cp.1 b/bin/cp/cp.1 index 8c014b4..169f350 100644 --- a/bin/cp/cp.1 +++ b/bin/cp/cp.1 @@ -32,7 +32,7 @@ .\" @(#)cp.1 8.3 (Berkeley) 4/18/94 .\" $FreeBSD$ .\" -.Dd September 4, 2012 +.Dd March 15, 2013 .Dt CP 1 .Os .Sh NAME @@ -251,6 +251,27 @@ signal, the current input and output file and the percentage complete will be written to the standard output. .Sh EXIT STATUS .Ex -std +.Sh EXAMPLES +Make a copy of file +.Pa foo +named +.Pa bar : +.Pp +.Dl $ cp foo bar +.Pp +Copy a group of files to the +.Pa /tmp +directory: +.Pp +.Dl $ cp *.txt /tmp +.Pp +Copy the directory +.Pa junk +and all of its contents (including any subdirectories) to the +.Pa /tmp +directory: +.Pp +.Dl $ cp -R junk /tmp .Sh COMPATIBILITY Historic versions of the .Nm |