|
|
1.1 root 1: .TH RCP 1
2: .CT 1 comm_mach
3: .SH NAME
4: rcp \- remote file copy
5: .SH SYNOPSIS
6: .B rcp
7: [
8: .B -p
9: ]
10: .I filename1 filename2
11: .PP
12: .B rcp
13: [
14: .B -p
15: ] [
16: .B -r
17: ]
18: .I filename ... directory
19: .SH DESCRIPTION
20: .I Rcp
21: copies files across TCP/IP connections.
22: Each
23: .I filename
24: or
25: .I directory
26: argument is either a remote file name of the form:
27: .IP
28: .IB hostname : path
29: .LP
30: or a local file name (containing no
31: .L :
32: unless preceded by
33: .LR / ).
34: .PP
35: If a
36: .I filename
37: is not a full path name, it is interpreted relative to
38: your home directory on machine
39: .IR hostname .
40: A
41: .I path
42: on a remote host may be quoted to cause
43: metacharacters to be interpreted remotely.
44: .PP
45: Your current local user name
46: must exist on
47: .I hostname
48: and allow remote command execution by
49: .IR rsh ;
50: see
51: .IR con (1).
52: .PP
53: .I Rcp
54: handles third party copies, where neither source nor target files
55: are on the current machine.
56: Hostnames may also take the form
57: .IP
58: .IB username @ hostname : filename
59: .PP
60: to use
61: .I username
62: rather than your current local user name as the user name on
63: the remote host.
64: In this usage,
65: .I hostname
66: may be a full internet domain name.
67: .PP
68: The options are
69: .TP
70: .B \-p
71: Attempt to give each copy the same modification times, access times,
72: and modes as the original file.
73: .TP
74: .B \-r
75: Copy each subtree rooted at
76: .IR filename ;
77: in this case the destination must be a directory.
78: .SH FILES
79: .TF .profile
80: .TP
81: .F .cshrc
82: .TP
83: .F .login
84: .TP
85: .F .profile
86: .PD
87: .SH SEE ALSO
88: .IR con (1),
89: .IR cu (1),
90: .IR push (1),
91: .IR uucp (1)
92: .SH BUGS
93: There is no check against copying a file onto itself.
94: .br
95: Certain cases where a file name is given when a directory
96: is required are not diagnosed.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.