Research V4 development
[unix-history] / man / man1 / cp.1
CommitLineData
e4c4b514
KT
1.th CP I 1/24/73
2.sh NAME
3cp \*- copy
4.sh SYNOPSIS
5.bd cp
6file1 file2
7.sh DESCRIPTION
8The
9first file is copied onto the second.
10The mode and owner of the target file
11are preserved if it already
12existed; the mode of the source file
13is used otherwise.
14.s3
15If
16.it file2
17is a directory, then the target
18file is a file in that directory with the file-name
19of
20.it file1.
21.sh "SEE ALSO"
22cat(I), pr(I), mv(I)
23.sh BUGS
24Copying
25a file onto itself destroys its contents.