Documented in Volume 1 of the UNIX Programmers Manual.
....is a 4.2bsd command
cod% rsh marlin who
causes the who command to be run on marlin.
NOTE:
Shell metacharacters which are not quoted are interpreted on
local machine, while quoted metacharacters are interpreted
on the remote machine. Thus the command
% rsh otherhost cat remotefile >> localfile
appends the remote file named remotefile to the local file named
localfile, while
% rsh otherhost cat remotefile ">>" otherremotefile
appends remotefile to otherremotefile.
A shortcut:
You can put the directory name "/usr/hosts" in your search path
(usually set in your .login file) and then substitute "machinename"
(i.e. cod, marlin, etc.) for "rlogin machinename". This also works for
the command rsh.