1RCP(1C) RCP(1C)
2
3
4
6 rcp - remote file copy
7
9 rcp [ -p ] file1 file2
10 rcp [ -p ] [ -r ] file ... directory
11
13 Rcp copies files between machines. Each file or directory argument is
14 either a remote file name of the form ``rhost:path'', or a local file
15 name (containing no `:' characters, or a `/' before any `:'s).
16
17 If the -r option is specified and any of the source files are directo‐
18 ries, rcp copies each subtree rooted at that name; in this case the
19 destination must be a directory.
20
21 By default, the mode and owner of file2 are preserved if it already
22 existed; otherwise the mode of the source file modified by the umask(2)
23 on the destination host is used. The -p option causes rcp to attempt
24 to preserve (duplicate) in its copies the modification times and modes
25 of the source files, ignoring the umask.
26
27 If path is not a full path name, it is interpreted relative to your
28 login directory on rhost. A path on a remote host may be quoted (using
29 \, ", or ´) so that the metacharacters are interpreted remotely.
30
31 Rcp does not prompt for passwords; your current local user name must
32 exist on rhost and allow remote command execution via rsh(1C).
33
34 Rcp handles third party copies, where neither source nor target files
35 are on the current machine. Hostnames may also take the form
36 ``rname@rhost'' to use rname rather than the current user name on the
37 remote host. The destination hostname may also take the form
38 ``rhost.rname'' to support destination machines that are running 4.2BSD
39 versions of rcp.
40
42 cp(1), ftp(1C), rsh(1C), rlogin(1C)
43
45 Doesn't detect all cases where the target of a copy might be a file in
46 cases where only a directory should be legal.
47 Is confused by any output generated by commands in a .login, .profile,
48 or .cshrc file on the remote host.
49
50
51
524.2 Berkeley Distribution May 12, 1986 RCP(1C)