1RCP(1)                    BSD General Commands Manual                   RCP(1)
2

NAME

4     rcp — remote file copy
5

SYNOPSIS

7     rcp [-px] file1 file2
8     rcp [-px] [-r] file ... directory
9

DESCRIPTION

11     Rcp copies files between machines.  Each file or directory argument is
12     either a remote file name of the form ``rname@rhost:path'', or a local
13     file name (containing no `:' characters, or a `/' before any `:'s).
14
15     -r    If any of the source files are directories, rcp copies each subtree
16           rooted at that name; in this case the destination must be a direc‐
17           tory.
18
19     -p    The -p option causes rcp to attempt to preserve (duplicate) in its
20           copies the modification times and modes of the source files, ignor‐
21           ing the umask.  By default, the mode and owner of file2 are pre‐
22           served if it already existed; otherwise the mode of the source file
23           modified by the umask(2) on the destination host is used.
24
25     If path is not a full path name, it is interpreted relative to the login
26     directory of the specified user ruser on rhost, or your current user name
27     if no other remote user name is specified.  A path on a remote host may
28     be quoted (using \, ", or ´) so that the metacharacters are interpreted
29     remotely.
30
31     Rcp does not prompt for passwords; it performs remote execution via
32     rsh(1), and requires the same authorization.
33
34     Rcp handles third party copies, where neither source nor target files are
35     on the current machine.
36

SEE ALSO

38     cp(1), ftp(1), rsh(1), rlogin(1)
39

HISTORY

41     The rcp command appeared in 4.2BSD.
42

BUGS

44     Doesn't detect all cases where the target of a copy might be a file in
45     cases where only a directory should be legal.
46
47     Is confused by any output generated by commands in a .login, .profile, or
48     .cshrc file on the remote host.
49
50     The destination user and hostname may have to be specified as
51     ``rhost.rname'' when the destination machine is running the 4.2BSD ver‐
52     sion of rcp.
53
54Linux NetKit (0.17)             August 15, 1999            Linux NetKit (0.17)
Impressum