rcp(1c)
NAME
rcp − remote file copy
SYNTAX
rcp file1 file2
rcp [−r] file... directory
DESCRIPTION
The rcp command copies files between machines. Each file or directory argument is either a remote file name of the form “rhost:path”, or a local file name (containing no ‘:’ characters, or a ‘/’ before any ‘:’s.)
The rcp command refuses to copy a file onto itself.
If path is not a full path name, it is interpreted relative to your login directory on rhost. A path on a remote host may be quoted (using \, ", or ´) so that the metacharacters are interpreted remotely.
The rcp does not prompt for passwords; your current local user name must exist on rhost and allow remote command execution via rsh(.).
The rcp command handles third party copies, where neither source nor target files are on the current machine. Hostnames may also take the form “rhost.rname” to use rname rather than the current user name on the remote host. If you use the host.name syntax, then host.name of the source should be included in the rhosts of the target account. Using $> rcp mach1.user1:foo mach2.user2:foo as an example: The file .rhosts with an entry for mach1 user1 should be on mach2 in user2’s account. Also note that it may be necessary for the person implementing the rcp command to be listed in the .rhosts file for mach1 user1.
OPTIONS
−rRecursively copies files in all subdirectories, if the specified file to be copied is a directory.
RESTRICTIONS
Doesn’t detect all cases where the target of a copy might be a file in cases where only a directory should be legal.
Is confused by any output generated by commands in a .login, .profile, or .cshrc file on the remote host.