.TH CP 1 .SH NAME cp, rcp \- copy .SH SYNOPSIS .B cp [ .B \-i ] file1 file2 .PP .B cp [ .B \-i ] file ... directory .PP .B rcp file1 file2 .PP .B rcp file ... directory .SH DESCRIPTION .I file1 is copied onto .IR file2 . The mode and owner of .I file2 are preserved if it already existed; the mode of the source file is used otherwise. .PP In the second form, one or more .I files are copied into the .I directory with their original file-names. .PP .I Cp refuses to copy a file onto itself. .PP If the .B \-i option is specified, .I cp 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 .I cp to continue; any other answer will prevent it from overwriting the file. .PP .I Rcp (recursive copy) works like .I cp, but also copies directories and their contents and attempts to duplicate linked structures. .SH "SEE ALSO" cat(1), mv(1), push(1)