Solaris Advanced User's Guide

Copying Files From Your Machine to Another

To copy files from your local machine to a remote machine, use the following command syntax.

$ rcp source machinename:destination

In the previous example, source is the file(s) you want to copy, machinename is the name of the remote machine, and destination is the path name on the remote machine where you want the copied file(s) to reside.

The following example illustrates how to copy the file newhosts from your /tmp directory to the /tmp directory on the remote machine starbug.

venus$ cd /tmp
venus$ rcp newhosts starbug:/tmp

For more information on the rcp(1) command and its options, refer to the man Pages(1): User Commands.