4BSD/usr/man/cat1/cp.1

Compare this file to the similar file:
Show the results in this format:




CP(1)               UNIX Programmer's Manual                CP(1)



NAME
     cp - copy

SYNOPSIS
     cp [ -i ] file1 file2

     cp [ -i ] file ... directory

DESCRIPTION
     _F_i_l_e_1 is copied onto _f_i_l_e_2.  The mode and owner of _f_i_l_e_2 are
     preserved if it already existed; the mode of the source file
     is used otherwise.

     In the second form, one or more _f_i_l_e_s are copied into the
     _d_i_r_e_c_t_o_r_y with their original file-names.

     _C_p refuses to copy a file onto itself.

     If the -i option is specified, _c_p 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 _c_p to
     continue. Any other answer will prevent it from overwriting
     the file.

SEE ALSO
     cat(1), pr(1), mv(1)





























Printed 11/10/80                                                1