Files
tldr/pages.zh/linux/rsh.md

16 lines
432 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# rsh
> 在远程主机上执行命令。
> 更多信息:<https://www.gnu.org/software/inetutils/manual/html_node/rsh-invocation.html>。
- 在远程主机上执行命令:
`rsh {{remote_host}} {{ls -l}}`
- 以特定用户名在远程主机上执行命令:
`rsh {{remote_host}} -l {{username}} {{ls -l}}`
- 在远程主机上执行命令时将 `stdin` 重定向到 `/dev/null`
`rsh {{remote_host}} --no-err {{ls -l}}`