|
|
1.1 root 1: .TH PCP 1P "22 June 1983"
2: .UC 4
3: .SH NAME
4: pcp \- copy files
5: .SH SYNOPSIS
6: .B pcp
7: [\fB\-i\fR] file1 file2
8: .PP
9: .B pcp
10: [\fB\-i\fR] file ... dirname
11: .SH DESCRIPTION
12: .I Pcp
13: copies
14: .I file1
15: onto
16: .I file2.
17: The mode and owner of
18: .I file2
19: are preserved if it already exists, otherwise the mode of the source file
20: is used.
21: .PP
22: In the second form, one or more
23: .I files
24: are copied into
25: .I dirname
26: with their original file names.
27: .PP
28: .I File
29: and
30: .I dirname
31: may be either regular or project pathnames. However, because
32: .I pcp
33: interprets both
34: .I file
35: and
36: .I dirname
37: arguments as project pathnames, if
38: .I file
39: matchs the name of a project directory within the same project, then
40: .I pcp
41: will print the error message `pcp: can't copy project directory
42: .I file',
43: unless
44: .I file
45: is disguised as ./\fIfile\fR.
46: .PP
47: .I Pcp
48: blindly overwrites existing files unless the
49: .B \-i
50: option is specified.
51: .PP
52: .I Pcp
53: refuses to copy a file onto itself.
54: .SH OPTIONS
55: .IP \fB\-i\fR
56: Interactive mode.
57: .I Pcp
58: will prompt the user with the name of the file whenever the copy will cause
59: an old file to be overwritten. An answer of `y' will cause
60: .I pcp
61: to continue. Any other answer will prevent it from overwriting the file
62: .SH "SEE ALSO"
63: cp(1)
64: .SH DIAGNOSTICS
65: Exit status 0 is normal. Exit status 1 indicates an error.
66: .SH AUTHOR
67: Peter J. Nicklin
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.