summaryrefslogtreecommitdiffstats
path: root/bin/cp/cp.1
diff options
context:
space:
mode:
authorjohan <johan@FreeBSD.org>2002-07-23 00:42:56 +0000
committerjohan <johan@FreeBSD.org>2002-07-23 00:42:56 +0000
commitc464bca234e43e5c9d7076042f3261ce368fbc4e (patch)
tree49671495a38f4cacd1e75c9f73f7e469e9ee79ec /bin/cp/cp.1
parent7bd1d4e8de5727f9c13675ff5ab143c5dd5bb66e (diff)
downloadFreeBSD-src-c464bca234e43e5c9d7076042f3261ce368fbc4e.zip
FreeBSD-src-c464bca234e43e5c9d7076042f3261ce368fbc4e.tar.gz
Add the -n option, which automatically answers "no" to the overwrite question.
PR: 7828 Suggested by: Daniel O'Connor <doconnor@gsoft.com.au> Approved by: sheldonh (mentor) MFC after: 2 weeks
Diffstat (limited to 'bin/cp/cp.1')
-rw-r--r--bin/cp/cp.121
1 files changed, 18 insertions, 3 deletions
diff --git a/bin/cp/cp.1 b/bin/cp/cp.1
index c682ae1..5c83a9a 100644
--- a/bin/cp/cp.1
+++ b/bin/cp/cp.1
@@ -47,7 +47,7 @@
.Fl R
.Op Fl H | Fl L | Fl P
.Oc
-.Op Fl f | i
+.Op Fl f | i | n
.Op Fl pv
.Ar source_file target_file
.Nm
@@ -55,7 +55,7 @@
.Fl R
.Op Fl H | Fl L | Fl P
.Oc
-.Op Fl f | i
+.Op Fl f | i | n
.Op Fl pv
.Ar source_file ... target_directory
.Sh DESCRIPTION
@@ -121,6 +121,8 @@ regardless of its permissions.
.Fl f
option overrides any previous
.Fl i
+or
+.Fl n
options.)
.It Fl i
Cause
@@ -136,6 +138,17 @@ the file copy is attempted.
.Fl i
option overrides any previous
.Fl f
+or
+.Fl n
+options.)
+.It Fl n
+Do not overwriting an existing file.
+(The
+.Fl n
+option overrides any previous
+.Fl f
+or
+.Fl i
options.)
.It Fl p
Cause
@@ -226,7 +239,9 @@ or fifo's.
.Pp
The
.Fl v
-option is non-standard and its use in scripts is not recommended.
+and
+.Fl n
+options are non-standard and their use in scripts is not recommended.
.Sh SEE ALSO
.Xr mv 1 ,
.Xr rcp 1 ,
OpenPOWER on IntegriCloud