📄 telnet.1
字号:
.Dv FALSEany of the specified variables.The values of variables may be interrogated with the.Ic displaycommand.The variables which may be set or unset, but not toggled, arelisted here. In addition, any of the variables for the.Ic togglecommand may be explicitly set or unset..Bl -tag -width escape.It Ic aytIf.Tn telnetis in localchars mode, or.Dv LINEMODEis enabled, and the status character is typed, a.Dv TELNET AYTsequence is sent to the remote host. The initial value for the "AreYou There" character is the terminal's status character..It Ic echoThis is the value (initially \*(Lq^E\*(Rq) which, when in\*(Lqline by line\*(Rq mode, toggles between doing local echoingof entered characters (for normal processing), and suppressingechoing of entered characters (for entering, say, a password)..It Ic eofIf.Nm telnetis operating in.Dv LINEMODEor \*(Lqold line by line\*(Rq mode, entering this characteras the first character on a line will cause this character to besent to the remote system.The initial value of the eof character is taken to be the terminal's.Ic eofcharacter..It Ic eraseIf.Nm telnetis in.Ic localcharsmode (see.Ic toggle.Ic localcharsbelow),.Sy andif.Nm telnetis operating in \*(Lqcharacter at a time\*(Rq mode, then when thischaracter is typed, a.Dv TELNET ECsequence (see.Ic send.Ic ecabove)is sent to the remote system.The initial value for the erase character is taken to bethe terminal's.Ic erasecharacter..It Ic escapeThis is the.Nm telnetescape character (initially \*(Lq^[\*(Rq) which causes entryinto.Nm telnetcommand mode (when connected to a remote system)..It Ic flushoutputIf.Nm telnetis in.Ic localcharsmode (see.Ic toggle.Ic localcharsbelow)and the.Ic flushoutputcharacter is typed, a.Dv TELNET AOsequence (see.Ic send.Ic aoabove)is sent to the remote host.The initial value for the flush character is taken to bethe terminal's.Ic flushcharacter..It Ic forw1.It Ic forw2If.Tn TELNETis operating in.Dv LINEMODE ,these are thecharacters that, when typed, cause partial lines to beforwarded to the remote system. The initial value forthe forwarding characters are taken from the terminal'seol and eol2 characters..It Ic interruptIf.Nm telnetis in.Ic localcharsmode (see.Ic toggle.Ic localcharsbelow)and the.Ic interruptcharacter is typed, a.Dv TELNET IPsequence (see.Ic send.Ic ipabove)is sent to the remote host.The initial value for the interrupt character is taken to bethe terminal's.Ic intrcharacter..It Ic killIf.Nm telnetis in.Ic localcharsmode (see.Ic toggle.Ic localcharsbelow),.Ic andif.Nm telnetis operating in \*(Lqcharacter at a time\*(Rq mode, then when thischaracter is typed, a.Dv TELNET ELsequence (see.Ic send.Ic elabove)is sent to the remote system.The initial value for the kill character is taken to bethe terminal's.Ic killcharacter..It Ic lnextIf.Nm telnetis operating in.Dv 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..It Ic quitIf.Nm telnetis in.Ic localcharsmode (see.Ic toggle.Ic localcharsbelow)and the.Ic quitcharacter is typed, a.Dv 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..It Ic reprintIf.Nm telnetis operating in.Dv 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..It Ic rloginThis is the rlogin mode escape character. Setting it enables rloginmode, as with the.Ar rcommand-line option (q.v.).It Ic startIf the.Dv 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..It Ic stopIf the.Dv 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..It Ic suspIf.Nm telnetis in.Ic localcharsmode, or.Dv LINEMODEis enabled, and the.Ic suspendcharacter is typed, a.Dv 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..It Ic tracefileThis is the file to which the output, caused by.Ic netdataor.Ic optiontracing being.Dv TRUE ,will be written. If it is set to.Dq Fl ,then tracing information will be written to standard output (the default)..It Ic worderaseIf.Nm telnetis operating in.Dv 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..It Ic \&?Displays the legal.Ic set.Pq Ic unsetcommands..El.It Ic slc Ar state The.Ic slccommand (Set Local Characters) is used to setor change the state of the the specialcharacters when the .Dv TELNET LINEMODEoption hasbeen enabled. Special characters are characters that getmapped to .Tn TELNETcommands sequences (like.Ic ipor.Ic quit )or line editing characters (like.Ic eraseand.Ic kill ) .By default, the local special characters are exported..Bl -tag -width Fl.It 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..It 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..It Ic importSwitch to the remote defaults for the special characters.The remote default characters are those of the remote systemat the time when the .Tn TELNETconnection was established..It Ic \&?Prints out help information for the.Ic slccommand..El.It Ic statusShow the current status of.Nm telnet .This includes the name of the remote host, if any, as well as thecurrent mode..It Ic toggle Ar arguments ... Toggle (between.Dv TRUEand.Dv FALSE )various flags that control how.Nm telnetresponds to events.These flags may be set explicitly to.Dv TRUEor.Dv FALSEusing the.Ic setand.Ic unsetcommands.More than one flag may be toggled at once.The state of these flags may be examined with the.Ic displaycommand.Valid flags are:.Bl -tag -width Ar.It Ic authdebugTurns on debugging for the authentication code. This flag only existsif authentication support is enabled..It Ic autoflushIf.Ic autoflushand.Ic localcharsare both.Dv TRUE ,then when the.Ic ao ,or.Ic quitcharacters are recognized (and transformed into.Tn TELNETsequences; see.Ic setabove for details),.Nm telnetrefuses to display any data on the user's terminaluntil the remote system acknowledges (via a.Dv TELNET TIMING MARKoption)that it has processed those.Tn TELNETsequences.The initial value for this toggle is.Dv TRUEif the terminal user had notdone an "stty noflsh", otherwise.Dv FALSE(see.Xr stty 1 ) ..It Ic autodecryptWhen the.Dv TELNET ENCRYPToption is negotiated, bydefault the actual encryption (decryption) of the datastream does not start automatically. The autoencrypt(autodecrypt) command states that encryption of theoutput (input) stream should be enabled as soon aspossible..PpNote that this flag exists only if encryption support is enabled..It Ic autologinIf the remote side supports the.Dv TELNET AUTHENTICATIONoption,.Tn telnetattempts to use it to perform automatic authentication. If the.Dv TELNET AUTHENTICATIONoption is not supported, the user's login name is propagated using the.Dv TELNET ENVIRONoption.Setting this flag is the same as specifying the.Ar aoption to the.Ic opencommand or on the command line..It Ic autosynchIf.Ic autosynchand.Ic localcharsare both.Dv TRUE ,then when either the.Ic intror.Ic quitcharacters is typed (see.Ic setabove for descriptions of the.Ic intrand.Ic quitcharacters), the resulting.Tn telnetsequence sent is followed by the.Dv TELNET SYNCHsequence.This procedure.Ic shouldcause the remote system to begin throwing away all previouslytyped input until both of the.Tn telnetsequences have been read and acted upon.The initial value of this toggle is.Dv FALSE ..It Ic binaryEnable or disable the.Dv TELNET BINARYoption on both input and output..It Ic inbinaryEnable or disable the.Dv TELNET BINARYoption on input..It Ic outbinaryEnable or disable the.Dv TELNET BINARYoption on output..It Ic crlfIf this is.Dv TRUE ,then carriage returns will be sent as.Li <CR><LF> .If this is.Dv FALSE ,then carriage returns will be send as.Li <CR><NUL> .The initial value for this toggle is.Dv FALSE ..It 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.Dv FALSE ..It Ic debugToggles socket level debugging (useful only to the.Ic super user ) .The initial value for this toggle is.Dv FALSE ..It Ic encdebugTurns on debugging information for the encryption code.Note that this flag only exists if encryption support is available..It Ic localcharsIf this is.Dv TRUE ,then the.Ic flush ,.Ic interrupt ,.Ic quit ,.Ic erase ,and.Ic killcharacters (see.Ic setabove) are recognized locally, and transformed into (hopefully) appropriate.Tn TELNETcontrol sequences(respectively.Ic ao ,.Ic ip ,.Ic brk ,.Ic ec ,and.Ic el ;see.Ic sendabove).The initial value for this toggle is.Dv TRUEin \*(Lqold line by line\*(Rq mode,and.Dv FALSEin \*(Lqcharacter at a time\*(Rq mode.When the.Dv LINEMODEoption is enabled, the value of.Ic localcharsis ignored, and assumed to always be.Dv TRUE .If.Dv 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)..It Ic netdataToggles the display of all network data (in hexadecimal format).The initial value for this toggle is.Dv FALSE ..It Ic optionsToggles the display of some internal.Nm telnetprotocol processing (having to do with.Tn telnetoptions).The initial value for this toggle is.Dv FALSE ..It Ic prettydumpWhen the.Ic netdatatoggle is enabled, if.Ic prettydumpis enabled the output from the.Ic netdatacommand will be formatted in a more user-readable format.Spaces are put between each character in the output, and thebeginning of.Tn telnetescape sequences are preceded by a '*' to aid in locating them..It Ic skiprcWhen the skiprc toggle is.Dv TRUE ,.Tn telnetdoes not read the .Pa \&.telnetrcfile. The initial value for this toggle is.Dv FALSE..It Ic termdataToggles the display of all terminal data (in hexadecimal format).The initial value for this toggle is.Dv FALSE ..It Ic verbose_encryptWhen the.Ic verbose_encrypttoggle is.Dv TRUE ,.Tn TELNETprints out a message each time encryption is enabled ordisabled. The initial value for this toggle is.Dv FALSE.This flag only exists if encryption support is available..It Ic \&?Displays the legal.Ic togglecommands..El.It Ic zSuspend.Nm telnet .This command only works when the user is using the.Xr csh 1 ..It Ic \&! Op Ar command Execute a single command in a subshell on the localsystem. If.Ic commandis omitted, then an interactive subshell is invoked..It Ic \&? Op Ar command Get help. With no arguments,.Nm telnetprints a help summary.If a command is specified,.Nm telnetwill print the help information for just that command..El.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.Dv TELNET ENVIRONoption..Sh FILES.Bl -tag -width ~/.telnetrc -compact.It Pa ~/.telnetrcuser customized telnet startup values.El.Sh HISTORYThe.Nm Telnetcommand appeared in.Bx 4.2 ..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 .Dv LINEMODEthe terminal's.Ic eofcharacter is only recognized (and sent to the remote system)when it is the first character on a line..Sh BUGSThe source code is not comprehensible.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -