Reference: rsh
Author: Daniel Gilly & the Staff of O'Reilly & Associates
Date: 1998-08-06T21:54:46Z

#

| Chapter 2 UNIX Commands |

## rsh

    rsh [options] host [command]

A BSD-derived command to invoke a remote shell. This command is usually found in /usr/ucb and should not be confused with rsh, the restricted shell. rsh connects to `host` and executes `command`. If `command` is not specified, rsh allows you to rlogin to `host`. If shell metacharacters need to be interpreted on the remote machine, enclose them in quotes. This command is sometimes called remsh.

### Options

-l `user`

  Connect to `host` with a login name of `user`.

-n

  Divert input to /dev/null. Sometimes useful when piping rsh to a command that reads standard input but that might terminate before rsh.

Reference: rsh |  | Reference: ruptime