Introduction to the Unix Cluster. Node: RCP

PREV FTP UP FileOps NEXT Mac

RCP

RCP is a program very similar to FTP, also used to copy files between computers. However, RCP isn't available on as many computers as FTP and is mainly used to copy files between UNIX machines. Instead of looking in `.netrc' for login information, it looks in `/.rhosts' (just like rsh rlogin---an entry in `/etc/hosts.equiv' would do just as well).

RCP works just like the UNIX command cp (see Files) except that:

  1. Filenames must be prefixed with host: or user@host:.
  2. Pathnames thus prefixed are relative to the user's home directory on the remote machine.
  3. You must be careful about the use of special characters (*, ?, etc.).

A command like rcp phoenix.princeton.edu:intro.texi /tmp/ would copy the file `intro.texi' from Phoenix (on main campus) to the local file `/tmp/intro.texi'. By switching the arguments around, i.e. rcp intro.texi phoenix.prinecton.edu:/tmp/, the file would be copied from the home directory to the remote computer's `/tmp/' directory . See man rcp for more detailed information.

PREV FTP UP FileOps NEXT Mac