From 2c9dc2caa30d32b7feb77d74e74f01e016b1a436 Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Sat, 11 Nov 2023 14:36:51 +0100 Subject: [PATCH] rcp: add page (#11456) * rcp: add page * Update rcp.md --- pages/linux/rcp.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/linux/rcp.md diff --git a/pages/linux/rcp.md b/pages/linux/rcp.md new file mode 100644 index 000000000..2f8da27c2 --- /dev/null +++ b/pages/linux/rcp.md @@ -0,0 +1,21 @@ +# rcp + +> Copy files between local and remote systems. +> It mimics the behavior of the `cp` command but operates across different machines. +> More information: . + +- Copy a file to a remote host: + +`rcp {{path/to/local_file}} {{username}}@{{remotehost}}:{{/path/to/destination/}}` + +- Copy a directory recursively: + +`rcp -r {{path/to/local_directory}} {{username}}@{{remotehost}}:{{/path/to/destination/}}` + +- Preserve the file attributes: + +`rcp -p {{path/to/local_file}} {{username}}@{{remotehost}}:{{/path/to/destination/}}` + +- Force copy without a confirmation: + +`rcp -f {{path/to/local_file}} {{username}}@{{remotehost}}:{{/path/to/destination/}}`