📄 telnet.1.txt
字号:
command; however, if the remote side does not support the.Dv LOGOUToption, nothing happens.If, however, the remote side does support the.Dv LOGOUToption, this command should cause the remote side to close the.Tn TELNETconnection.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 ``character at a time'' mode..It Ic lineEnable the.Dv TELNET LINEMODEoption, or, if the remote side does not understand the.Dv LINEMODEoption, then attempt to enter ``old-line-by-line'' 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..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.Op Fl l Ar user.Oo Op Fl.Ar port Oc.XcOpen a connection to the named host.If no port numberis specified,.Nmwill 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 ``dot notation'' (see.Xr inet 3 ) .The.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,.Nmomits 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 theuser's home directory is opened.Lines beginning with a ``#'' arecomment lines.Blank lines are ignored.Lines that beginwithout whitespace are the start of a machine entry.The first thing on the line is the name of the machine that isbeing connected to.The rest of the line, and successivelines that begin with whitespace are assumed to be.Nmcommands and are processed as if they had been typedin manually to the.Nmcommand 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):.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.Nmescape character (initially ``^]'')..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..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 ``r'' may be echoed on the terminal)..It Ic do 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 dont Ar cmdSends the.Dv TELNET DONT.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 will Ar cmdSends the.Dv TELNET WILL.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 wont Ar cmdSends the.Dv TELNET WONT.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.Nmvariables 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.Ic localcharsmode, 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 ``^E'') which, when in``line by line'' mode, toggles between doing local echoingof entered characters (for normal processing), and suppressingechoing of entered characters (for entering, say, a password)..It Ic eofIf.Nmis operating in.Dv LINEMODEor ``old line by line'' 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.Ic eofcharacter is taken to be the terminal's.Ic eofcharacter..It Ic eraseIf.Nmis in.Ic localcharsmode (see.Ic toggle.Ic localcharsbelow),and if.Nmis operating in ``character at a time'' 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.Ic erasecharacter is taken to bethe terminal's.Ic erasecharacter..It Ic escapeThis is the.Nmescape character (initially ``^['') which causes entryinto.Nmcommand mode (when connected to a remote system)..It Ic flushoutputIf.Nmis 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.Ic flushcharacter 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.Nmis 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.Ic interruptcharacter is taken to bethe terminal's.Ic intrcharacter..It Ic killIf.Nmis in.Ic localcharsmode (see.Ic toggle.Ic localcharsbelow),and if.Nmis operating in ``character at a time'' 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.Ic killcharacter is taken to bethe terminal's.Ic killcharacter..It Ic lnextIf.Nmis operating in.Dv LINEMODEor ``old line by line'' mode, then this character is taken tobe the terminal's.Ic lnextcharacter.The initial value for the.Ic lnextcharacter is taken to bethe terminal's.Ic lnextcharacter..It Ic quitIf.Nmis in.Ic localcharsmode (see.Ic toggle.Ic localcharsbelow)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -