aboutsummaryrefslogtreecommitdiff
path: root/bin/cp/cp.1
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cp/cp.1')
-rw-r--r--bin/cp/cp.133
1 files changed, 22 insertions, 11 deletions
diff --git a/bin/cp/cp.1 b/bin/cp/cp.1
index f7e2d639def7..d37776dda4d3 100644
--- a/bin/cp/cp.1
+++ b/bin/cp/cp.1
@@ -29,10 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" @(#)cp.1 8.3 (Berkeley) 4/18/94
-.\" $FreeBSD$
-.\"
-.Dd June 6, 2015
+.Dd March 28, 2024
.Dt CP 1
.Os
.Sh NAME
@@ -45,7 +42,7 @@
.Op Fl H | Fl L | Fl P
.Oc
.Op Fl f | i | n
-.Op Fl alpsvx
+.Op Fl alNpsvx
.Ar source_file target_file
.Nm
.Oo
@@ -53,7 +50,15 @@
.Op Fl H | Fl L | Fl P
.Oc
.Op Fl f | i | n
-.Op Fl alpsvx
+.Op Fl alNpsvx
+.Ar source_file ... target_directory
+.Nm
+.Op Fl f | i | n
+.Op Fl alNPpsvx
+.Ar source_file target_file
+.Nm
+.Op Fl f | i | n
+.Op Fl alNPpsvx
.Ar source_file ... target_directory
.Sh DESCRIPTION
In the first synopsis form, the
@@ -84,10 +89,10 @@ If the
.Fl R
option is specified, all symbolic links are followed.
.It Fl P
-If the
+No symbolic links are followed.
+This is the default if the
.Fl R
-option is specified, no symbolic links are followed.
-This is the default.
+option is specified.
.It Fl R
If
.Ar source_file
@@ -150,6 +155,10 @@ or
options.)
.It Fl l
Create hard links to regular files in a hierarchy instead of copying.
+.It Fl N
+When used with
+.Fl p ,
+suppress copying file flags.
.It Fl n
Do not overwrite an existing file.
(The
@@ -300,12 +309,14 @@ differ as they copy special files as normal
files while recreating a hierarchy.
.Pp
The
+.Fl a ,
.Fl l ,
+.Fl N ,
+.Fl n ,
.Fl s ,
.Fl v ,
-.Fl x
and
-.Fl n
+.Fl x
options are non-standard and their use in scripts is not recommended.
.Sh SEE ALSO
.Xr mv 1 ,