Previous Section  < Day Day Up >  Next Section

rcp—remote file copy


rcp [ –p ] filename1 filename2

rcp [ –pr ] filename...directory


The rcp command copies files between machines in the following form:


remotehostname:path

user@hostname:file

user@hostname.domainname:file


Example A.43.

1   rcp dolphin:filename /tmp/newfilename

2   rcp filename broncos:newfilename


EXPLANATION

  1. Copies filename from remote machine dolphin to /tmp/newfilename on this machine.

  2. Copies filename from this machine to remote machine broncos and names it newfilename.

    Previous Section  < Day Day Up >  Next Section