Copying files over the network -- the rcp command
You can copy files between accounts on different computers by using the
"rcp" command. "rcp" functions like "cp" except that you are allowed to
specify the name of a computer as part of the file name. An "rcp"
filename consists of the name of the computer followed by a colon [:]
and the path name relative to the home directory on the other computer.
For example, to copy 'myfile' in the current directory to 'myfile' in the
home directory of the same account on Orion, type:
rcp myfile orion:myfile
Entire directories can be copied by using the "-r" option and the name of
the directory.
Be sure that your '.cshrc' file doesn't produce any output when it is
executed. If it does, "rcp" won't work.
Click here to go to the
top of the chapter.