Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

26
tldr/linux/rexec Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# rexec
> Execute a command on a remote host.
> 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:
`rexec -h={{remote_host}} {{ls -l}}`
- Specify the remote [u]sername on a remote [h]ost:
`rexec -username={{username}} -h={{remote_host}} {{ps aux}}`
- Redirect `stdin` from `/dev/null` on a remote [h]ost:
`rexec --no-err -h={{remote_host}} {{ls -l}}`
- Specify the remote [P]ort on a remote [h]ost:
`rexec -P={{1234}} -h={{remote_host}} {{ls -l}}`