BSD 4_2 development
[unix-history] / usr / man / man1 / rcp.1c
CommitLineData
b1691f10
C
1.TH RCP 1C "17 March 1982"
2.UC 4
3.SH NAME
4rcp \- remote file copy
5.SH SYNOPSIS
6.B rcp
7file1 file2
8.br
9.B rcp
10[
11.B \-r
12] file ... directory
13.SH DESCRIPTION
14.I Rcp
15copies files between machines. Each
16.I file
17or
18.I directory
19argument is either a remote file name of the
20form ``rhost:path'', or a local file name (containing no `:' characters,
21or a `/' before any `:'s.)
22.PP
23If the
24.B \-r
25is specified and any of the source files are directories,
26.I rcp
27copies each subtree rooted at that name; in this case
28the destination must be a directory.
29.PP
30If
31.I path
32is not a full path name, it is interpreted relative to
33your login directory on
34.IR rhost .
35A
36.I path
37on a remote host may be quoted (using \e, ", or \(aa)
38so that the metacharacters are interpreted remotely.
39.PP
40.I Rcp
41does not prompt for passwords; your current local user name
42must exist on
43.I rhost
44and allow remote command execution via
45.IR rsh (1C).
46.PP
47.I Rcp
48handles third party copies, where neither source nor target files
49are on the current machine.
50Hostnames may also take the form ``rhost.rname'' to use
51.I rname
52rather than the current user name on the remote host.
53.SH SEE ALSO
54ftp(1C), rsh(1C), rlogin(1C)
55.SH BUGS
56Doesn't detect all cases where the target of a copy might
57be a file in cases where only a directory should be legal.
58.br
59Is confused by any output generated by commands in a
60\&.login, \&.profile, or \&.cshrc file on the remote host.