Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-17 00:22:45 +00:00
parent 38ecb2b6c5
commit 42c0c33dde
259 changed files with 1079 additions and 386 deletions

View File

@@ -7,20 +7,20 @@ source: https://github.com/tldr-pages/tldr.git
> 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>.
> More information: <https://www.gnu.org/software/inetutils/manual/inetutils.html#rcp-invocation>.
- Copy a file to a remote host:
`rcp {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
`rcp {{path/to/local_file}} {{username}}@{{remote_host}}:/{{path/to/destination}}/`
- Copy a directory recursively:
`rcp {{[-r|--recursive]}} {{path/to/local_directory}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
`rcp {{[-r|--recursive]}} {{path/to/local_directory}} {{username}}@{{remote_host}}:/{{path/to/destination}}/`
- Preserve the file attributes:
`rcp {{[-p|--preserve]}} {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
`rcp {{[-p|--preserve]}} {{path/to/local_file}} {{username}}@{{remote_host}}:/{{path/to/destination}}/`
- Force copy without a confirmation:
`rcp {{[-f|--from]}} {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
`rcp {{[-f|--from]}} {{path/to/local_file}} {{username}}@{{remote_host}}:/{{path/to/destination}}/`