RCP(1C) — Silicon Graphics
NAME
rcp − remote file copy
SYNOPSIS
rcp file1 file2
rcp [ ] file ... directory
DESCRIPTION
rcp copies files between machines. Each file or directory argument is either a remote filename of the form remote_host:path, remote_host.user:file, or a local file name containing no colons or having a slash ( / ) before any colons.
If −r is specified and any of the source files are directories, rcp copies each subtree rooted at that name. Here the destination must be a directory.
If path is not a full pathname, it is interpreted relative to your login directory on remote_host. A path on a remote host can be quoted (using \ , ", or ´) to interpret metacharacters remotely.
rcp does not prompt for passwords. The current local username must exist on remote_host and allow remote command execution via rsh(1C).
rcp handles third-party copies, where neither source nor target files are on the current machine. Host names may also take the form remote_host.user to use a different user account rather than the current user name on the remote host.
SEE ALSO
BUGS
rcp does not detect all cases where the target of a copy is a file but only a directory is legal. For instance,
rcp <system>:<path>/\* <path>/<filename>
copies only the last file matching the first path name onto the second filename.
Version 2.4 — September 29, 2021