Linux rsh命令

Linux 教程 · 2019-02-16 17:28:36

Linux rsh命令用于远端登入的Shell。

rsh(remote shell)提供用户环境,也就是Shell,以便指令能够在指定的远端主机上执行。

语法

rsh [-dn][-l <用户名称>][主机名称或IP地址][执行指令]

参数说明

  • -d  使用Socket层级的排错功能。
  • -l<用户名称>  指定要登入远端主机的用户名称。
  • -n  把输入的指令号向代号为/dev/null的特殊外围设备。

实例

开启rsh服务

# chkconfig --list //检测rlogin服务是否开启

# chkconfig rsh on //开启rsh服务

# chkconfig -list //检测开启的服务

远程命令执行

# rsh -l hnlinux 192.168.1.88 /bin/ls //远程执行ls命令

点击查看所有 Linux 教程 文章: https://codercto.com/courses/l/14.html

查看所有标签

Programming PHP

Programming PHP

Rasmus Lerdorf、Kevin Tatroe、Peter MacIntyre / O'Reilly Media / 2006-5-5 / USD 39.99

Programming PHP, 2nd Edition, is the authoritative guide to PHP 5 and is filled with the unique knowledge of the creator of PHP (Rasmus Lerdorf) and other PHP experts. When it comes to creating websit......一起来看看 《Programming PHP》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具