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.124
1 files changed, 13 insertions, 11 deletions
diff --git a/bin/cp/cp.1 b/bin/cp/cp.1
index f6ff23a16f41..2856391a029e 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 February 23, 2022
+.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,15 +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 alPpsvx
+.Op Fl alNPpsvx
.Ar source_file target_file
.Nm
.Op Fl f | i | n
-.Op Fl alPpsvx
+.Op Fl alNPpsvx
.Ar source_file ... target_directory
.Sh DESCRIPTION
In the first synopsis form, the
@@ -158,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
@@ -308,16 +309,17 @@ 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 ,
-.Xr rcp 1 ,
.Xr umask 2 ,
.Xr fts 3 ,
.Xr symlink 7