CP(1) UNIX Programmer's Manual CP(1)
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
c
\bcp
\bp [ -
\b-i
\bip
\bp ] file1 file2
c
\bcp
\bp [ -
\b-i
\bip
\bpr
\br ] file ... directory
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
_
\bF_
\bi_
\bl_
\be_
\b1 is copied onto _
\bf_
\bi_
\bl_
\be_
\b2. By default, the mode and owner
of _
\bf_
\bi_
\bl_
\be_
\b2 are preserved if it already existed; otherwise the
mode of the source file modified by the current _
\bu_
\bm_
\ba_
\bs_
\bk(2) is
used. The -
\b-p
\bp option causes _
\bc_
\bp to attempt to preserve
(duplicate) in its copies the modification times and modes
of the source files, ignoring the present _
\bu_
\bm_
\ba_
\bs_
\bk.
In the second form, one or more _
\bf_
\bi_
\bl_
\be_
\bs are copied into the
_
\bd_
\bi_
\br_
\be_
\bc_
\bt_
\bo_
\br_
\by with their original file-names.
_
\bC_
\bp refuses to copy a file onto itself.
If the -
\b-i
\bi option is specified, _
\bc_
\bp will prompt the user with
the name of the file whenever the copy will cause an old
file to be overwritten. An answer of 'y' will cause _
\bc_
\bp to
continue. Any other answer will prevent it from overwriting
If the -
\b-r
\br option is specified and any of the source files
are directories, _
\bc_
\bp copies each subtree rooted at that name;
in this case the destination must be a directory.
S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
Printed 7/9/88 June 8, 1985 1