These examples show syntax for some common uses of rcp.
To copy a local file to the logon directory of a remote computer:
rcp filename remotecomputer:
To copy a local file to an exisiting directory and new filename on a remote
rcp filename remotecomputer:/directory/newfilename
To copy multiple local files to a subdirectory of a remote logon directory:
rcp file1 file2 file3 remotecomputer:subdirectory/filesdirectory
To copy from a remote source to the current directory of the local computer:
rcp remotecomputer:filename .
To copy from multiple files from multiple remote sources to a remote
destination with different usernames:
rcp remote1.user1:file1 remote2.user2:file2 remotedest.destuser:directory
To copy from a remote system using an IP address to a local computer (where
the username is mandatory because a period is used in the remote system name):
rcp 188.8.131.52.user:filename filename