Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rcp(1C) — SunOS 3.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ftp(1C)

rsh(1C)

rlogin(1C)

RCP(1C)  —  USER COMMANDS

NAME

rcp − remote file copy

SYNOPSIS

rcp filename1 filename2 rcp [ −r ] filename ... directory

DESCRIPTION

rcp copies files between machines.  Each filename 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). 

If a filename 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. 

rcp does not prompt for passwords; your current local user name must exist on rhost and allow remote command execution by rsh(1C).

rcp handles third party copies, where neither source nor target files are on the current machine.  Hostnames may also take the form rhost.rname to copy files relative to the home directory of the user named rname, rather than the current user name on the remote host.

OPTIONS

−p Preserve modification times and access times. 

−r copy each subtree rooted at filename; in this case the destination must be a directory.

SEE ALSO

ftp(1C), rsh(1C), rlogin(1C)

BUGS

rcp is meant to copy between different hosts; attempting to rcp a file onto itself (as with "myhost% rcp tmp/file myhost:/tmp/file") results in a severely corrupted file.

rcp doesn’t detect all cases where the target of a copy might be a file in cases where only a directory should be legal. 

rcp can become confused by output generated by commands in a .profile, .cshrc, or .login file on the remote host. 

rcp doesn’t copy ownership, mode, and timestamps to the new files. 

rcp requires that the source host have permission to execute commands on the remote host when doing third-party copies. 

If you forget to quote metacharacters intended for the remote host you get an incomprehesible error message. 

Sun Release 3.5  —  Last change: 13 November 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026