Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rcp(1c) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cp(1)

ftp(1c)

rsh(1c)

rlogin(1c)

rcp(1c)

NAME

rcp − remote file copy

SYNTAX

rcp [ −p ] file1 file2
rcp [ −r ] [ −p ] file...  directory

DESCRIPTION

The rcp command copies files between network 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. 

If the −r option is specified and any of the source files are directories, rcp copies each subtree rooted at that name.  In this case, the destination must be a directory. 

If the −p option is specified, rcp attempts to preserve the modification times and modes of each file (ignoring the umask) as it copies it. 

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 command does not prompt for passwords.  Your current local user name must exist on rhost and allow remote command execution through rsh(1c). 

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.  For example:

$> rcp mach1.user1:foo  mach2.user2:foo

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. 

RESTRICTIONS

Does not 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.

SEE ALSO

cp(1), ftp(1c), rsh(1c), rlogin(1c)

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