|
|
1.1 root 1: .TH CP 1 "1 April 1982"
2: .UC 4
3: .SH NAME
4: cp \- copy
5: .SH SYNOPSIS
6: .B cp
7: [
8: .B \-i
9: ] [
10: .B \-r
11: ] file1 file2
12: .PP
13: .B cp
14: [
15: .B \-i
16: ] [
17: .B \-r
18: ] file ... directory
19: .SH DESCRIPTION
20: .I File1
21: is copied onto
22: .IR file2 .
23: The mode and owner of
24: .I file2
25: are preserved if it already
26: existed; the mode of the source file
27: is used otherwise.
28: .PP
29: In the second form, one or more
30: .I files
31: are copied into the
32: .I directory
33: with their original file-names.
34: .PP
35: .I Cp
36: refuses to copy a file onto itself.
37: .PP
38: If the
39: .B \-i
40: option is specified,
41: .I cp
42: will prompt the user with the name of the file
43: whenever the copy will cause an old file to be
44: overwritten. An answer of 'y' will cause
45: .I cp
46: to continue. Any other answer will prevent it
47: from overwriting the file.
48: .PP
49: If the
50: .B \-r
51: option is specified and any of the source files are directories,
52: .I cp
53: copies each subtree rooted at that name; in this case
54: the destination must be a directory.
55: .SH "SEE ALSO"
56: cat(1), pr(1), mv(1)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.