BSD 3 development
[unix-history] / usr / man / man1 / cp.1
CommitLineData
e6817382
BJ
1.TH CP 1
2.SH NAME
3cp \- copy
4.SH SYNOPSIS
5.B cp
6file1 file2
7.PP
8.B cp
9file ... directory
10.SH DESCRIPTION
11.I File1
12is copied onto
13.IR file2 .
14The mode and owner of
15.I file2
16are preserved if it already
17existed; the mode of the source file
18is used otherwise.
19.PP
20In the second form, one or more
21.I files
22are copied into the
23.I directory
24with their original file-names.
25.PP
26.I Cp
27refuses to copy a file onto itself.
28.SH "SEE ALSO"
29cat(1), pr(1), mv(1)