telnet.1
来自「Linux下的socks的程序源程序,用于socks的代理服务」· 1 代码 · 共 1,513 行 · 第 1/3 页
1
1,513 行
that tabs and spaces may be included..Tp Cx Ic undefine.Cx \&\ \&.Ar variable.CxRemove.Ar variablefrom the list of environment variables..Tp Cx Ic export.Cx \&\ \&.Ar variable.CxMark the variable.Ar variableto be exported to the remote side..Tp Cx Ic unexport.Cx \&\ \&.Ar variable.CxMark the variable.Ar variableto not be exported unlessexplicitly asked for by the remote side..Tp Ic listList the current set of environment variables.Those marked with a \fB*\fR will be sent automatically,other variables will only be sent if explicitly requested..Tp Ic \&?Prints out help information for the.Ic environcommand..Tp.\" ######## END the "environ" command.\".\" ######## BEGIN the "logout" command.Tp Ic logoutSend the.Li TELNET LOGOUToption to the remote side.This is similar to doing a.Ic closecommand, howeverif the remote side does not support the.Li LOGOUToption, then nothing will happen.If, however, the remote side does support the.Li LOGOUToption, then this command should cause the remote sideto close the.Li TELNETconnection.In addition, if the remote side supports the concept of suspendinga users session for later re-attachement, the.Li LOGOUToption indicates that the session should be terminated immediately..\" ######## END the "logout" command.\".\" ######## BEGIN the "mode" command.Tp Cx Ic mode.Cx \&\ \&.Ar type.Cx.Ar Typeis one of several options, depending on the state of the.Li 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..Tw Ar.Tp Ic characterDisable the.Li TELNET LINEMODEoption, or, if the remote side does not understand the.Li LINEMODEoption, then enter \*(Lqcharacter at a time\*(Lq mode..Tp Ic lineEnable the.Li TELNET LINEMODEoption, or, if the remote side does not understand the.Li LINEMODEoption, then attempt to enter \*(Lqold-line-by-line\*(Lq mode..Tp Cx Ic isig.Cx \&\ \&.Pq Ic \-isig.CxAttempt to enable (disable) the .Li TRAPSIGmode of the .Li LINEMODEoption.This requires that the .Li LINEMODEoption be enabled..Tp Cx Ic edit.Cx \&\ \&.Pq Ic \-edit.CxAttempt to enable (disable) the .Li EDITmode of the .Li LINEMODEoption.This requires that the .Li LINEMODEoption be enabled..Tp Cx Ic softtabs.Cx \&\ \&.Pq Ic \-softtabs.CxAttempt to enable (disable) the .Li SOFT_TABmode of the .Li LINEMODEoption.This requires that the .Li LINEMODEoption be enabled..Tp Cx Ic litecho.Cx \&\ \&.Pq Ic \-litecho.CxAttempt to enable (disable) the .Li LIT_ECHOmode of the .Li LINEMODEoption.This requires that the .Li LINEMODEoption be enabled..Tp Ic \&?Prints out help information for the.Ic modecommand..Tp.\" ######## END the "mode" command.\".\" ######## BEGIN the "open" command.Tp Cx Ic open.Cx \&\ \&.Ar host.Cx \&\ \&.Cx [.Op Fl l.Cx \&\ \&.Ar user.Cx ].Cx [.Op Fl.Cx \&\ \&.Ar port.Cx ].CxOpen a connection to the named host.If no port numberis specified,.Nm telnetwill attempt to contact a.Li 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.Li ENVIRONoption.When connecting to a non-standard port,.Nm telnetomits any automatic initiation of.Li TELNEToptions. When the port number is preceded by a minus sign,the initial option negotiation is done.After establishing a connection,if the.Ic skiprcvariable is not enabled(see the.Ic toggle.Ic skiprccommand below),the file.Pa \&.telnetrcin theusers 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. 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 whitespace are assumed to be.Nm telnetcommands and are processed as if they had been typedin manually to the.Nm telnetcommand prompt.The special machine name.Ic DEFAULTis used to specify commands that should be executed forall machines.There may be more than one entry for a machine; all matcheswill the specified machine name will be executed..\" ######## END the "open" command.\".\" ######## BEGIN the "quit" command.Tp Ic quitClose any open.Li TELNETsession and exit.Nm telnet .An end of file (in command mode) will also close a session and exit..\" ######## END the "quit" command.\".\" ######## BEGIN the "send" command.Tp Cx Ic send.Cx \&\ \&.Ar arguments.CxSends 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.Tw Ds.Tp Ic abortSends the.Li TELNET ABORT(ABORT processes)sequence..Tp Ic aoSends the.Li TELNET AO(Abort Output) sequence, which should cause the remote system to flushall output.Em fromthe remote system.Em tothe user's terminal..Tp Ic aytSends the.Li TELNET AYT(Are You There)sequence, to which the remote system may or may not choose to respond..Tp Ic brkSends the.Li TELNET BRK(Break) sequence, which may have significance to the remotesystem..Tp Ic ecSends the.Li TELNET EC(Erase Character)sequence, which should cause the remote system to erase the last characterentered..Tp Ic elSends the.Li TELNET EL(Erase Line)sequence, which should cause the remote system to erase the line currentlybeing entered..Tp Ic eofSends the.Li TELNET EOF(End Of File)sequence..Tp Ic eorSends the.Li TELNET EOR(End of Record)sequence..Tp Ic escapeSends the current.Nm telnetescape character (initially \*(Lq^\*(Rq)..Tp Ic gaSends the.Li TELNET GA(Go Ahead)sequence, which likely has no significance to the remote system..Tp Ic getstatusIf the remote side supports the.Li TELNET STATUScommand,.Ic getstatuswill send the subnegotiation to request that the server sendits current option status..Tp Ic ipSends the.Li TELNET IP(Interrupt Process) sequence, which should cause the remotesystem to abort the currently running process..Tp Ic nopSends the.Li TELNET NOP(No OPeration)sequence..Tp Ic suspSends the.Li TELNET SUSP(SUSPend process)sequence..Tp Ic synchSends the.Li TELNET SYNCHsequence.This sequence causes the remote system to discard all previously typed(but not yet read) input.This sequence is sent as TCP urgentdata (and may not work if the remote system is a 4.2 BSD system -- ifit doesn't work, a lower case \*(Lqr\*(Rq may be echoed on the terminal)..Tp Ic \&?Prints out help information for the.Ic sendcommand..Tp.\" ######## END the "send" command.\".\" ######## BEGIN the "set" and "unset" commands.Tp Cx Ic set.Cx \&\ \&.Ar argument value.Cx.Tp Cx Ic unset.Cx \&\ \&.Ar argument value.CxThe.Ic setcommand will set any one of a number of.Nm telnetvariables to a specific value or to 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 FALSE any 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..Tw Fl.Tp Ic aytIf.Nm telnetis in.Ic localcharsmode, or.Li LINEMODEis enabled, and the.Ic statuscharacter is typed, a.Li TELNET AYTsequence (see.Ic send.Ic aytabove)is sent to the remote host.The initial value for the ayt character is taken to bethe terminal's.Ic statuscharacter..Tp 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)..Tp Ic eofIf.Nm telnetis operating in.Li 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..Tp 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.Li 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..Tp Ic escapeThis is the.Nm telnetescape character (initially \*(Lq^[\*(Rq) which causes entryinto.Nm telnetcommand mode (when connected to a remote system)..Tp Ic flushoutputIf.Nm telnetis in.Ic localcharsmode (see.Ic toggle.Ic localcharsbelow)and the.Ic flushoutputcharacter is typed, a.Li 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..Tp Ic forw1.Tp Ic forw2If.Nm telnetis operating in.Li LINEMODE,these are the characters that, when typed,cause partial lines to be forwarded to the remote system.The initial value for the forw1 and forw2 characters aretaken from the terminal's.Ic eoland.Ic eol2characters..Tp Ic interruptIf.Nm telnetis in.Ic localcharsmode (see.Ic toggle.Ic localcharsbelow)and the.Ic interruptcharacter is typed, a.Li 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..Tp 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.Li 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..Tp Ic lnextIf
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?