rcp - remote file copy
rcp [-Dfpt] file1 file2
rcp [-dDfprt] file ... directory
The rcp(1) utility copies files between computers. Each file or directory argument is either a remote file name of the form rname@rhost:path or a local file name (containing no ':' characters, or a '/' before any ':'s). The rhost name can be specified in either name or numeric dot-notation.
When rcp(1) is used for remote-to-remote copies, the Windows domain name is prefixed to the user's name for the source files. That is, the command
rcp -D loki@asgard:ragnarok loki@bifrost:plans
is treated as:
rcp PANTHEON+loki@asgard:ragnarok loki@bifrost:plans
When used for remote-to-local copies, both user names are prefixed with the user's domain name. Again, assuming user loki in Windows domain PANTHEON, these two commands are equivalent:
rcp -D @asgard:ragnarok plans
rcp PANTHEON+loki@asgard:ragnarok plans
If the user name is specified, however, it is assumed to be correct
and complete.
rcp -D thor@asgard:hammer problems
is logically equivalent to:
rcp thor@asgard:hammer problems
If path is not a full path name, it is interpreted relative to the login directory of the specified user ruser on rhost, or your current user name if no other remote user name is specified. A path on a remote host can be quoted (using \, ", or ') so that the metacharacters are interpreted remotely.
The rcp(1) utility does not prompt for passwords; it performs remote execution through rsh(1), and requires the same authorization.
The rcp(1) utility handles third-party copies, where neither source nor target files are on the current computer.
Does not detect all cases where the target of a copy might be a file when 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.
The destination user and host name might have to be specified as "rhost.rname" when the destination computer is running the Berkeley Software Distribution (BSD) 4.2 version of rcp(1).
cp(1)
ftp(1)
rsh(1)
rshd(1)
rlogin(1)