UNIX Shells by Example (4th Edition)

 <  Day Day Up  >  

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.

 <  Day Day Up  >  

Категории