telnet.1
来自「Linux下的socks的程序源程序,用于socks的代理服务」· 1 代码 · 共 1,513 行 · 第 1/3 页
1
1,513 行
.Nm telnetis operating in.Li LINEMODEor \*(Lqold line by line\*(Lq mode, then this character is taken tobe the terminal's.Ic lnextcharacter.The initial value for the lnext character is taken to bethe terminal's.Ic lnextcharacter..Tp Ic quitIf.Nm telnetis in.Ic localcharsmode (see.Ic toggle.Ic localcharsbelow)and the.Ic quitcharacter is typed, a.Li TELNET BRKsequence (see.Ic send.Ic brkabove)is sent to the remote host.The initial value for the quit character is taken to bethe terminal's.Ic quitcharacter..Tp Ic reprintIf.Nm telnetis operating in.Li LINEMODEor \*(Lqold line by line\*(Lq mode, then this character is taken tobe the terminal's.Ic reprintcharacter.The initial value for the reprint character is taken to bethe terminal's.Ic reprintcharacter..Tp Ic rloginThis is the rlogin escape character.If set, the normal.Nm telnet.Ic escapecharacter will be ignored unless it is preceded by this characterat the beginning of a line.This character, at the beginning of a line, followed by a ``.''will close the connection; when followed by a ``^Z'' it willsuspend the.Nm telnetcommand.The initial state is to have the.Ic rloginescape character disabled..Tp Ic startIf the.Li TELNET TOGGLE-FLOW-CONTROLoption has been enabled,then this character is taken tobe the terminal's.Ic startcharacter.The initial value for the kill character is taken to bethe terminal's.Ic startcharacter..Tp Ic stopIf the.Li TELNET TOGGLE-FLOW-CONTROLoption has been enabled,then this character is taken tobe the terminal's.Ic stopcharacter.The initial value for the kill character is taken to bethe terminal's.Ic stopcharacter..Tp Ic suspIf.Nm telnetis in.Ic localcharsmode, or.Li LINEMODEis enabled, and the.Ic suspendcharacter is typed, a.Li TELNET SUSPsequence (see.Ic send.Ic suspabove)is sent to the remote host.The initial value for the suspend character is taken to bethe terminal's.Ic suspendcharacter..Tp Ic tracefileThis is the file to which the output, caused by.Ic netdata,.Ic termdata,or.Ic optiontracing being TRUE, will be written. If it is set to.Dq Fl ,then tracing information will be written to standard output (the default)..Tp Ic worderaseIf.Nm telnetis operating in.Li LINEMODEor \*(Lqold line by line\*(Lq mode, then this character is taken tobe the terminal's.Ic worderasecharacter.The initial value for the worderase character is taken to bethe terminal's.Ic worderasecharacter..Tp Ic \&?Displays the legal.Ic set.Pq Ic unsetcommands..Tp.\" ######## END the "set" and "unset" commands.\".\" ######## BEGIN the "slc" command.Tp Cx Ic slc.Cx \&\ \&.Ar state.CxThe.Ic slccommand (Set Local Characters) is used to setor change the state of the the specialcharacters when the .Li TELNET LINEMODEoption hasbeen enabled. Special characters are characters that getmapped to .Li TELNETcommands sequences (like.Ic ipor.Ic quit )or line editing characters (like.Ic eraseand.Ic kill ) .By default, the local special characters are exported..Tw Fl.Tp Ic exportSwitch to the local defaults for the special characters. Thelocal default characters are those of the local terminal atthe time when.Nm telnetwas started..Tp Ic importSwitch to the remote defaults for the special characters.The remote default characters are those of the remote systemat the time when the .Li TELNETconnection was established..Tp Ic checkVerify the current settings for the current special characters.The remote side is requested to send all the current specialcharacter settings, and if there are any discrepancies withthe local side, the local side will switch to the remote value..Tp Ic \&?Prints out help information for the.Ic slccommand..Tp.\" ######## END the "slc" command.\".\" ######## BEGIN the "status" command.Tp Ic statusShow the current status of.Nm telnet .This includes the peer one is connected to, as wellas the current mode..\" ######## END the "status" command.\".\" ######## BEGIN the "toggle" command.Tp Cx Ic toggle.Cx \&\ \&.Ar arguments ....CxToggle (betweenTRUEandFALSE)various flags that control how.Nm telnetresponds to events.These flags may be set explicitly to TRUE or FALSEusing the.Ic setand.Ic unsetcommands listed above.More than one argument may be specified.The state of these flags may be interrogated with the.Ic displaycommand.Valid arguments are:.Tw Ar.Tp Ic authdebugTurn on debugging information for the authentication code..Tp Ic autoflushIf.Ic autoflushand.Ic localcharsare bothTRUE,then when the.Ic ao ,or.Ic quitcharacters are recognized (and transformed into.Li TELNETsequences; see.Ic setabove for details),.Nm telnetrefuses to display any data on the user's terminaluntil the remote system acknowledges (via a.Li TELNET TIMING MARKoption)that it has processed those.Li TELNETsequences.The initial value for this toggle is TRUE if the terminal user had notdone an "stty noflsh", otherwise FALSE (see.Xr stty 1 ) ..Tp Ic autoencrypt.Tp Ic autodecryptWhen the.Li TELNET ENCRYPTIONoption is negotiated,by default the actual encryption (decryption) of the datastream does not automatically start.The.Ic autoencrypt.Ic (autodecrypt)command states that encryption of the output (input) stream should beenabled as soon as possible..Tp Ic autologinIf the.Li TELNET AUTHENTICATIONoption is supported by the remote side, then.Nm telnetwill attempt to use it to perform automatic authentication.If the.Li AUTHENTICATIONoption is not supported, then the users login name willbe propagated via the.Li TELNET ENVIRONoption.This command is the same as specifying.Fl aoption on the.Ic opencommand..Tp Ic autosynchIf.Ic autosynchand.Ic localcharsare bothTRUE,then when either the.Ic intror.Ic quitcharacters is typed (see.Ic setabove for descriptions of the.Ic intrand.Ic quitcharacters), the resulting.Li TELNETsequence sent is followed by the.Li TELNET SYNCHsequence.This procedure.Ic shouldcause the remote system to begin throwing away all previouslytyped input until both of the.Li TELNETsequences have been read and acted upon.The initial value of this toggle is FALSE..Tp Ic binaryEnable or disable the.Li TELNET BINARYoption on both input and output..Tp Ic inbinaryEnable or disable the.Li TELNET BINARYoption on input..Tp Ic outbinaryEnable or disable the.Li TELNET BINARYoption on output..Tp Ic crlfIf this is TRUE, then carriage returns will be sent as <CR><LF>.If this is FALSE, then carriage returns will be send as <CR><NUL>.The initial value for this toggle is FALSE..Tp Ic crmodToggle carriage return mode.When this mode is enabled, most carriage return characters received fromthe remote host will be mapped into a carriage return followed bya line feed.This mode does not affect those characters typed by the user, onlythose received from the remote host.This mode is not very useful unless the remote hostonly sends carriage return, but never line feed.The initial value for this toggle is FALSE..Tp Ic debugToggles socket level debugging (useful only to the.Ic super user ) .The initial value for this toggle is FALSE..Tp Ic encdebugTurn on debugging information for the encryption code..Tp Ic localcharsIf this isTRUE,then the.Ic flush ,.Ic interrupt ,.Ic quit ,.Ic erase ,and.Ic killcharacters (see.Ic setabove) are recognized locally, and transformed into (hopefully) appropriate.Li TELNETcontrol sequences(respectively.Ic ao ,.Ic ip ,.Ic brk ,.Ic ec ,and.Ic el ;see.Ic sendabove).The initial value for this toggle is TRUE in \*(Lqold line by line\*(Rq mode,and FALSE in \*(Lqcharacter at a time\*(Rq mode.When the.Li LINEMODEoption is enabled, the value of.Ic localcharsis ignored, and assumed to always be TRUE.If.Li LINEMODEhas ever been enabled, then.Ic quitis sent as.Ic abort ,and.Ic eof and.B suspendare sent as.Ic eof and.Ic susp ,see.Ic sendabove)..Tp Ic netdataToggles the display of all network data (in hexadecimal format).The initial value for this toggle is FALSE..Tp Ic optionsToggles the display of some internal.Nm telnetprotocol processing (having to do with.Li TELNEToptions).The initial value for this toggle is FALSE..Tp Ic prettydumpWhen the.Ic netdataor.Ic termdatatoggle is enabled, if.Ic prettydumpis enabled the output from the.Ic netdataand.Ic termdatacommand will be formated in a more user readable format.Spaces are put between each character in the output, and thebeginning of any.Li TELNETescape sequence is preceded by a '*' to aid in locating them..Tp Ic skiprcWhen the.Ic skiprctoggleis TRUE, then.Nm telnetwill skip the reading of the.Pa \&.telnetrcfile in the users home directorywhen connections are opened.The initial value for this toggle is FALSE..Tp Ic termdataToggles the display of all terminal data (in hexadecimal format).The initial value for this toggle is FALSE..Tp Ic verbose_encryptWhen the.Ic verbose_encrypttoggle is TRUE, then.Nm telnetwill print out a message each time encryption isenabled or disabled.The initial value for this toggle is FALSE..Tp Ic \&?Displays the legal.Ic togglecommands..Tp.\" ######## END the "toggle" command.\".\" ######## BEGIN the "z" command.Tp Ic zSuspend.Nm telnet .This command only works when the user is using the.Xr csh 1 ..\" ######## END the "z" command.\".\" ######## BEGIN the "!" command.Tp Cx Ic \&!.Cx \&\ \&.Op Ar command.CxExecute a single command in a subshell on the localsystem. If.Ic commandis omitted, then an interactivesubshell is invoked..\" ######## END the "!" command.\".\" ######## BEGIN the "?" command.Tp Cx Ic \&?.Cx \&\ \&.Op Ar command.CxGet help. With no arguments,.Nm telnetprints a help summary.If a command is specified,.Nm telnetwill print the help information for just that command..\" ######## END the "!" command.Sh ENVIRONMENT.Nm Telnetuses at least the.Ev HOME ,.Ev SHELL ,.Ev DISPLAY ,and.Ev TERMenvironment variables.Other environment variables may be propagatedto the other side via the.Li TELNET ENVIRONoption..Sh FILES.Dw ~/.telnetrc.Di L.Dp Pa ~/.telnetrcuser customized telnet startup values.Dp.Sh HISTORY.Nm Telnetappeared in 4.2 BSD..Sh NOTES.PpOn some remote systems, echo has to be turned off manually when in\*(Lqold line by line\*(Rq mode..PpIn \*(Lqold line by line\*(Rq mode or .Li LINEMODEthe terminal's.Ic eofcharacter is only recognized (and sent to the remote system)when it is the first character on a line.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?