Update cheatsheets

This commit is contained in:
ivuorinen
2024-06-26 00:14:22 +00:00
parent a7e9169550
commit e258e7ab99
5 changed files with 101 additions and 5 deletions

View File

@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
- Copy a file to a remote host:
`rcp {{path/to/local_file}} {{username}}@{{remotehost}}:{{/path/to/destination/}}`
`rcp {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
- Copy a directory recursively:
`rcp -r {{path/to/local_directory}} {{username}}@{{remotehost}}:{{/path/to/destination/}}`
`rcp -r {{path/to/local_directory}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
- Preserve the file attributes:
`rcp -p {{path/to/local_file}} {{username}}@{{remotehost}}:{{/path/to/destination/}}`
`rcp -p {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
- Force copy without a confirmation:
`rcp -f {{path/to/local_file}} {{username}}@{{remotehost}}:{{/path/to/destination/}}`
`rcp -f {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`

View File

@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Set or unset permissive mode for a confined domain. Per-domain permissive mode allows more granular control compared to `setenforce`:
`sudo semenage permissive {{-a|--add|-d|--delete}} {{httpd_t}}`
`sudo semanage permissive {{-a|--add|-d|--delete}} {{httpd_t}}`
- Output local customizations in the default store: