|
The rcp command copies files between machines. Each filename or directory argument is either a
remote file name of the form:
or a local file name (containing no ":" (colon) characters, or "/" (backslash) before any ":" (colon) characters).
The hostname can be an IPv4 or IPv6 address string. See inet(7P) and inet6(7P). Since IPv6 addresses already contain colons, the hostname should be enclosed in a pair
of square brackets when an IPv6 address is used. Otherwise, the first occurrence of a colon can be interpreted as the separator between hostname and path. For example,
| |
[1080::8:800:200C:417A]:tmp/file
|
If a filename is not a full path name, it is interpreted relative to your home directory on hostname. A path on a remote host may be quoted using \, ", or ', so that the metacharacters are interpreted remotely.
rcp does not prompt for passwords; your current local user name must exist on hostname and allow remote command execution by rsh(1).
rcp handles third party copies, where neither source nor target files are on the current machine. Hostnames may also take the form
| |
username@hostname:filename
|
to use username rather than your current local user name as the user name on the remote host. rcp also supports Internet domain addressing of the remote host, so that:
| |
username@host.domain:filename
|
specifies the username to be used, the hostname, and the domain in which that host resides. File names that are not full path names will be interpreted relative to the home directory of the user named username, on the remote host.
|