Remote Copy

The rcp command provides an alternative to ftp; it allows users to copy files over the network. The rcp command is the remote version of the Unix cp (copy) command. When using rcp, you do not need to supply a user ID or password. Some rudimentary security is provided by the fact that the name of your computer must reside in either of two server-based files named rhosts and hosts.equiv. The rcp command allows a user to copy files between a local computer and the host server or between two remote computers. The syntax for the rcp command is

rcp [hostname1]:filename1 [hostname2]:filename2
  • hostname1 Optionally indicates the hostname or Fully Qualified Domain Name (FQDN) of the source computer. Use this hostname if the source file is ...

Get Sams Teach Yourself TCP/IP in 24 Hours, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.