📄 rsh.1c
字号:
.\" SCCSID: @(#)rsh.1c 8.2 3/6/91.TH rsh 1c.SH Namersh \- remote shell.SH Syntax.B rsh.I host[\fB\-l\fI username\fR\|] [\fB\-n\fR] \fIcommand\fR.br.I host[\fB\-l\fI username\fR\|] [\fB\-n\fR] \fIcommand\fR.SH Description.NXR "rsh program".NXA "rsh program" "rlogin command".NXAM "rsh program" "rshd server"The.PN rshcommand connects to the specified.I host,and executes the specified \fIcommand\fR.The.PN rshcommandcopies its standard input to the remote command, the standardoutput of the remote command to its standard output, and thestandard error of the remote command to its standard error.Interrupt, quit and terminate signals are propagated to the remotecommand. The .PN rshcommand normally terminates when the remote command does..PPThe remote username used is the same as your local username,unless you specify a different remote name with the.B \-loption.This remote name must be equivalent, in the sense of.MS rlogin 1c ,to the originating account. No provisionis made for specifying a password with a command..PPIf you omit.I command,then instead of executing a single command, you are logged inon the remote host using .MS rlogin 1c ..PPShell metacharacters which are not quoted are interpretedon local machine, while quoted metacharacters are interpreted onthe remote machine.Thus the command.PP\ \ \ rsh otherhost cat remotefile >> localfile.PPappends the remote file.I remotefileto the localfile.I localfile,while.PP\ \ \ rsh otherhost cat remotefile ">>" otherremotefile.PPappends.I remotefileto.I otherremotefile..PPHost names are given in the file .PN /etc/hosts .Each hosthas one standard name (the first name given in the file), whichis rather long and unambiguous, and optionally one or more nicknames.The host names for local machines are also commands in the directory.PN /usr/hosts .If you put this directory in your search paththen the.PN rshcan be omitted..SH Options.NXR "rsh program" "options".IP "\fB\-\|l\fI username\fR" 20Logs you in as the specified user, not as your user login name..IP \fB\-n\fR 20Redirects all command input to.PN /dev/null ..SH Restrictions.NXR "rsh program" "restricted"The.PN rshcommand is confused by output generated by commands in a \&.cshrc file on the remote host.In particular, `where are you?' and `stty: Can't assign requested address' are messages which can result if output is generated by the startup file..PPIf you are using .MS csh 1and put a .MS rsh 1cin the background without redirecting its inputaway from the terminal, it blocks even if no readsare posted by the remote command. If no input is desiredyou should redirect the input of.PN rshto .PN /dev/nullusing the.B \-noption..PPYou cannot run an interactive commandlike .MS vi 1 .Use .MS rlogin 1c ..PPStop signals stop the local .PN rshprocess only..SH Files.ta 2i/etc/hosts.br/usr/hosts/*.DT.SH See Alsorlogin(1c)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -