rcp Command Examples

Copy files between local and remote systems. It mimics the behavior of the cp command but operates across different machines. More information: https://www.gnu.org/software/inetutils/manual/html_node/rcp-invocation.html.

rcp {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}

rcp -r {{path/to/local_directory}} {{username}}@{{remote_host}}:{{/path/to/destination/}}

rcp -p {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}

rcp -f {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}