Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-27 00:18:38 +00:00
parent 5871f35fe8
commit 9fe6559a97
123 changed files with 660 additions and 357 deletions

View File

@@ -9,18 +9,18 @@ source: https://github.com/tldr-pages/tldr.git
> Note: Use `rexec` with caution, as it transmits data in plain text. Consider secure alternatives like SSH for encrypted communication.
> More information: <https://www.gnu.org/software/inetutils/manual/html_node/rexec-invocation.html>.
- Execute a command on a remote [h]ost:
- Execute a command on a remote host:
`rexec -h={{remote_host}} {{ls -l}}`
`rexec {{[-h|--host]}} {{remote_host}} {{ls -l}}`
- Specify the remote [u]sername on a remote [h]ost:
- Specify the remote username on a remote host:
`rexec -username={{username}} -h={{remote_host}} {{ps aux}}`
`rexec {{[-u|--username]}} {{username}} {{[-h|--host]}} {{remote_host}} {{ps aux}}`
- Redirect `stdin` from `/dev/null` on a remote [h]ost:
- Redirect `stdin` from `/dev/null` on a remote host:
`rexec --no-err -h={{remote_host}} {{ls -l}}`
`rexec {{[-n|--noerr]}} {{[-h|--host]}} {{remote_host}} {{ls -l}}`
- Specify the remote [P]ort on a remote [h]ost:
- Specify the remote port on a remote host:
`rexec -P={{1234}} -h={{remote_host}} {{ls -l}}`
`rexec {{[-P|--port]}} {{1234}} {{[-h|--host]}} {{remote_host}} {{ls -l}}`