rcp—remote file copy

rcp [ –p ] filename1 filename2rcp [ –pr ] filename...directory

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

remothostname:pathuser@hostname:fileuser@hostname.domainname:file

Example A.34.
1   rcp dolphin:filename /tmp/newfilename
2   rcp filename broncos:newfilename

EXPLANATION

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

  2. Copy filename from this machine to remote machine broncos and name it newfilename.

Get UNIX® Shells by Example, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.