1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 01:15:52 +02:00

rcp: add page (#11456)

* rcp: add page

* Update rcp.md
This commit is contained in:
Sebastiaan Speck 2023-11-11 14:36:51 +01:00 committed by GitHub
parent 840dc73abd
commit 2c9dc2caa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

21
pages/linux/rcp.md Normal file
View file

@ -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: <https://www.gnu.org/software/inetutils/manual/html_node/rcp-invocation.html>.
- 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/}}`