The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: unix questions
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 07-22-2008
vijayq8 vijayq8 is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 14
Thumbs up Remote copy

Hi,

To copy a file from another host use the command:
rcp source_file destination_fileThe source file is given as:
system_name:filenameWhen given as a relative pathname, the filename is interpreted relative to your home directory on the remote host.



To copy a file from your home directory on another host to your current directory on your local host:
rcp goya:notes part1.txtTo copy a file from a subdirectory in your account on a remote host to a subdirectory on your local host:
rcp ubik:gnu/rcs/README tmp/gnu_READMETo copy a file from a remote host on which you have an account under another username:
rcp joe@pollux:News/alt.hypertext tmp/hypertextThanks & RegardsVijay.