OpenWindows Advanced User's Guide

9.3.2 Copying from Your Machine to Another

To copy from your local machine to a remote machine, the syntax is reversed as follows:

rcp source machinename:destination

where 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 you would copy the file austin from your directory ~/usa/texas to the directory ~hank/cities on the remote machine fretful (remember that ~ is your home directory and ~hank is user hank's home directory):

$ rcp ~/usa/texas/austin fretful:~hank/cities
$

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