Easy Tutorial
❮ Linux Comm Svgatextmode Linux Comm Mformat ❯

Linux rsh Command

Linux Command Manual

The Linux rsh command is used for remote login shell.

rsh (remote shell) provides a user environment, which is the shell, to execute commands on a specified remote host.

Syntax

rsh [-dn][-l <username>][hostname or IP address][command]

Parameter Description:

Example

Starting the rsh service

# chkconfig --list //Check if the rlogin service is enabled

# chkconfig rsh on //Enable the rsh service

# chkconfig --list //Check the enabled services

Executing remote commands

# rsh -l hnlinux 192.168.1.88 /bin/ls //Execute the ls command remotely

Linux Command Manual

❮ Linux Comm Svgatextmode Linux Comm Mformat ❯