man(1) Manual page archive


     RCP(1)                                                     RCP(1)

     NAME
          rcp - remote file copy

     SYNOPSIS
          rcp filename1 filename2

          rcp [ -r ] filename ... directory

     DESCRIPTION
          Rcp copies files across TCP/IP connections.  Each filename
          or directory argument is either a remote file name of the
          form:

               hostname:path

          or a local file name (containing no `:' unless preceded by
          `/').

          If a filename is not a full path name, it is interpreted
          relative to your home directory on machine hostname. A path
          on a remote host may be quoted to cause metacharacters to be
          interpreted remotely.

          Your current local user name must exist on hostname and
          allow remote command execution by rsh; see con(1).

          Rcp handles third party copies, where neither source nor
          target files are on the current machine.  Hostnames may also
          take the form

               username@hostname:filename

          to use username rather than your current local user name as
          the user name on the remote host.  In this usage, hostname
          may be a full internet domain name.

          The option is

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

     FILES
          required are not diagnosed.