📄 telnet.1
字号:
If the remote side also supports the concept ofsuspending a user's session for later reattachment,the logout argument indicates that youshould terminate the session immediately..It Ic mode Ar type.Ar Typeis one of several options, depending on the state of the.Tn TELNETsession.The remote host is asked for permission to go into the requested mode.If the remote host is capable of entering that mode, the requestedmode will be entered..Bl -tag -width Ar.It Ic characterDisable the.Dv TELNET LINEMODEoption, or, if the remote side does not understand the.Dv LINEMODEoption, then enter \*(Lqcharacter at a time\*(Lq mode..It Ic lineEnable the.Dv TELNET LINEMODEoption, or, if the remote side does not understand the.Dv LINEMODEoption, then attempt to enter \*(Lqold-line-by-line\*(Lq mode..It Ic isig Pq Ic \-isigAttempt to enable (disable) the.Dv TRAPSIGmode of the.Dv LINEMODEoption.This requires that the.Dv LINEMODEoption be enabled..It Ic edit Pq Ic \-editAttempt to enable (disable) the.Dv EDITmode of the.Dv LINEMODEoption.This requires that the.Dv LINEMODEoption be enabled..It Ic softtabs Pq Ic \-softtabsAttempt to enable (disable) the.Dv SOFT_TABmode of the.Dv LINEMODEoption.This requires that the.Dv LINEMODEoption be enabled..ne 1i.It Ic litecho Pq Ic \-litechoAttempt to enable (disable) the.Dv LIT_ECHOmode of the.Dv LINEMODEoption.This requires that the.Dv LINEMODEoption be enabled..It Ic \&?Prints out help information for the.Ic modecommand..El.It Xo.Ic open Ar host.Oo Op Fl l.Ar user.Oc Ns Oo Fl.Ar port Oc.XcOpen a connection to the named host.If no port numberis specified,.Nm telnetwill attempt to contact a.Tn TELNETserver at the default port.The host specification may be either a host name (see.Xr hosts 5 )or an Internet address specified in the \*(Lqdot notation\*(Rq (see.Xr inet 3 ) .The.Op Fl loption may be used to specify the user nameto be passed to the remote system via the.Ev ENVIRONoption.When connecting to a non-standard port,.Nm telnetomits any automatic initiation of.Tn TELNEToptions. When the port number is preceded by a minus sign,the initial option negotiation is done.After establishing a connection, the file.Pa \&.telnetrcin theusers home directory is opened. Lines beginning with a # arecomment lines. Blank lines are ignored. Lines that beginwithout white space are the start of a machine entry. Thefirst thing on the line is the name of the machine that isbeing connected to. The rest of the line, and successivelines that begin with white space are assumed to be.Nm telnetcommands and are processed as if they had been typedin manually to the.Nm telnetcommand prompt..It Ic quitClose any open.Tn TELNETsession and exit.Nm telnet .An end of file (in command mode) will also close a session and exit..It Ic send Ar argumentsSends one or more special character sequences to the remote host.The following are the arguments which may be specified(more than one argument may be specified at a time):.Pp.Bl -tag -width escape.It Ic abortSends the.Dv TELNET ABORT(Abortprocesses)sequence..It Ic aoSends the.Dv TELNET AO(Abort Output) sequence, which should cause the remote system to flushall output.Em fromthe remote system.Em tothe user's terminal..It Ic aytSends the.Dv TELNET AYT(Are You There)sequence, to which the remote system may or may not choose to respond..It Ic brkSends the.Dv TELNET BRK(Break) sequence, which may have significance to the remotesystem..It Ic ecSends the.Dv TELNET EC(Erase Character)sequence, which should cause the remote system to erase the last characterentered..It Ic elSends the.Dv TELNET EL(Erase Line)sequence, which should cause the remote system to erase the line currentlybeing entered..It Ic eofSends the.Dv TELNET EOF(End Of File)sequence..It Ic eorSends the.Dv TELNET EOR(End of Record)sequence..It Ic escapeSends the current.Nm telnetescape character (initially \*(Lq^\*(Rq)..It Ic gaSends the.Dv TELNET GA(Go Ahead)sequence, which likely has no significance to the remote system..It Ic getstatusIf the remote side supports the.Dv TELNET STATUScommand,.Ic getstatuswill send the subnegotiation to request that the server sendits current option status..ne 1i.It Ic ipSends the.Dv TELNET IP(Interrupt Process) sequence, which should cause the remotesystem to abort the currently running process..It Ic nopSends the.Dv TELNET NOP(No OPeration)sequence..It Ic suspSends the.Dv TELNET SUSP(SUSPend process)sequence..It Ic synchSends the.Dv TELNET SYNCHsequence.This sequence causes the remote system to discard all previously typed(but not yet read) input.This sequence is sent as.Tn TCPurgentdata (and may not work if the remote system is a.Bx 4.2system -- ifit doesn't work, a lower case \*(Lqr\*(Rq may be echoed on the terminal)..It Ic do Ar cmd.It Ic dont Ar cmd.It Ic will Ar cmd.It Ic wont Ar cmdSends the.Dv TELNET DO.Ar cmdsequence..Ar Cmdcan be either a decimal number between 0 and 255,or a symbolic name for a specific.Dv TELNETcommand..Ar Cmdcan also be either.Ic helpor.Ic \&?to print out help information, includinga list of known symbolic names..It Ic \&?Prints out help information for the.Ic sendcommand..El.It Ic set Ar argument value.It Ic unset Ar argument valueThe.Ic setcommand will set any one of a number of.Nm telnetvariables to a specific value or to.Dv TRUE .The special value.Ic offturns off the function associated withthe variable, this is equivalent to using the.Ic unsetcommand.The.Ic unsetcommand will disable or set to.Dv FALSEany of the specified functions.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 usingthe.Ic setand.Ic unsetcommands..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 (see.Ic send aytpreceding) is sent to theremote host. The initial value for the "Are You 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 be
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -