📄 telnet.1
字号:
.Ic reprintcharacter.The initial value for the reprint character is taken to bethe terminal's.Ic reprintcharacter..It Ic rloginThis is the rlogin escape character.If set, the normal.Tn TELNETescape character is ignored unless it ispreceded by this character at the beginning of a line.This character, at the beginning of a line followed bya "." closes the connection; when followed by a ^Z itsuspends the telnet command. The initial state is todisable the rlogin escape character..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 peer one is connected to, as wellas the current 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 listed above.More than one argument may be specified.The state of these flags may be interrogated with the.Ic displaycommand.Valid arguments are:.Bl -tag -width Ar.It Ic authdebugTurns on debugging information for the authentication code..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: Because of export controls, the.Dv TELNET ENCRYPToption is not supported outside the United States and Canada..It Ic autologinIf the remote side supports the.Dv TELNET AUTHENTICATIONoption.Tn TELNETattempts to use it to perform automatic authentication. If the.Dv AUTHENTICATIONoption is not supported, the user's loginname are propagated through the.Dv TELNET ENVIRONoption.This command is the same as specifying.Ar aoption on the.Ic opencommand..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..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 any.Tn TELNETescape sequence is preceded by a '*' to aid in locating them..It Ic skiprcWhen the skiprc toggle is.Dv TRUE ,.Tn TELNETskips the reading of the.Pa \&.telnetrcfile in the users homedirectory when connections are opened. The initialvalue 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.Note: Because of export controls, data encryptionis not supported outside of the United States and Canada..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 interactivesubshell 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.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -