📄 telnet.0
字号:
does not support the LOGOUT option, then nothing will hap- pen. If, however, the remote side does support the LOGOUT option, then this command should cause the remote side to close the TELNET connection. In addition, if the remote side supports the concept of suspending a users session for later re-attachement, the LOGOUT option indicates that the session should be terminated immediately. mmooddee _t_y_p_e _T_y_p_e is one of several options, depending on the state of the TELNET session. The remote host is asked for permission to go into the requested mode. If the remote host is capa- ble of entering that mode, the requested mode will be en- tered. cchhaarraacctteerr Disable the TELNET LINEMODE option, or, if the remote side does not understand the LINEMODE op- tion, then enter ``character at a time`` mode. lliinnee Enable the TELNET LINEMODE option, or, if the remote side does not understand the LINEMODE op- tion, then attempt to enter ``old-line-by-line`` mode. iissiigg (--iissiigg) Attempt to enable (disable) the TRAPSIG mode of the LINEMODE option. This requires that the LINEMODE option be enabled. eeddiitt (--eeddiitt) Attempt to enable (disable) the EDIT mode of the LINEMODE option. This requires that the LINEMODE option be enabled. ssooffttttaabbss (--ssooffttttaabbss) Attempt to enable (disable) the SOFT_TAB mode of the LINEMODE option. This requires that the LINEMODE option be enabled. lliitteecchhoo (--lliitteecchhoo) Attempt to enable (disable) the LIT_ECHO mode of the LINEMODE option. This requires that the LINEMODE option be enabled. ?? Prints out help information for the mmooddee com- mand. ooppeenn _h_o_s_t [[--ll] _u_s_e_r][[--] _p_o_r_t] Open a connection to the named host. If no port number is specified, tteellnneett will attempt to contact a TELNET server at the default port. The host specification may be either a host name (see hosts(5)) or an Internet address specified in the ``dot notation'' (see inet(3)). The [--ll] option may be used to specify the user name to be passed to the remote system via the ENVIRON option. When connecting to a non- standard port, tteellnneett omits any automatic initiation of TELNET options. When the port number is preceded by a minus sign, the initial option negotiation is done. After estab- lishing a connection, if the sskkiipprrcc variable is not enabled (see the ttooggggllee sskkiipprrcc command below), the file ._t_e_l_n_e_t_r_c in the users home directory is opened. Lines beginning with a # are comment lines. Blank lines are ignored. Lines that begin without whitespace are the start of a machine entry. The first thing on the line is the name of the machine that is being connected to. The rest of the line, and successive lines that begin with whitespace are assumed to be tteellnneett commands and are processed as if they had been typed in manually to the tteellnneett command prompt. The special machine name DDEEFFAAUULLTT is used to specify commands that should be exe- cuted for all machines. There may be more than one entry for a machine; all matches will the specified machine name will be executed. qquuiitt Close any open TELNET session and exit tteellnneett. An end of file (in command mode) will also close a session and exit. sseenndd _a_r_g_u_m_e_n_t_s Sends 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): aabboorrtt Sends the TELNET ABORT (ABORT processes) sequence. aaoo Sends the TELNET AO (Abort Output) sequence, which should cause the remote system to flush all output _f_r_o_m the remote system _t_o the user's terminal. aayytt Sends the TELNET AYT (Are You There) sequence, to which the remote system may or may not choose to respond. bbrrkk Sends the TELNET BRK (Break) sequence, which may have significance to the remote system. eecc Sends the TELNET EC (Erase Character) sequence, which should cause the remote system to erase the last char- acter entered. eell Sends the TELNET EL (Erase Line) sequence, which should cause the remote system to erase the line currently being entered. eeooff Sends the TELNET EOF (End Of File) sequence. eeoorr Sends the TELNET EOR (End of Record) sequence. eessccaappee Sends the current tteellnneett escape character (initially ``^''). ggaa Sends the TELNET GA (Go Ahead) sequence, which likely has no significance to the remote system. ggeettssttaattuuss If the remote side supports the TELNET STATUS command, ggeettssttaattuuss will send the subnegotiation to request that the server send its current option status. iipp Sends the TELNET IP (Interrupt Process) sequence, which should cause the remote system to abort the currently running process. nnoopp Sends the TELNET NOP (No OPeration) sequence. ssuusspp Sends the TELNET SUSP (SUSPend process) sequence. ssyynncchh Sends the TELNET SYNCH sequence. This sequence causes the remote system to discard all previously typed (but not yet read) input. This sequence is sent as TCP ur- gent data (and may not work if the remote system is a 4.2 BSD system -- if it doesn't work, a lower case ``r'' may be echoed on the terminal). ?? Prints out help information for the sseenndd command. sseett _a_r_g_u_m_e_n_t _v_a_l_u_e uunnsseett _a_r_g_u_m_e_n_t _v_a_l_u_e The sseett command will set any one of a number of tteellnneett vari- ables to a specific value or to TRUE. The special value ooffff turns off the function associated with the variable, this is equivalent to using the uunnsseett command. The uunnsseett command will disable or set to FALSE any of the specified functions. The values of variables may be interrogated with the ddiissppllaayy command. The variables which may be set or unset, but not toggled, are listed here. In addition, any of the variables for the ttooggggllee command may be explicitly set or unset using the sseett and uunnsseett commands. aayytt If tteellnneett is in llooccaallcchhaarrss mode, or LINEMODE is enabled, and the ssttaattuuss character is typed, a TELNET AYT sequence (see sseenndd aayytt above) is sent to the remote host. The initial value for the ayt character is taken to be the terminal's ssttaattuuss character. eecchhoo This is the value (initially ``^E'') which, when in ``line by line'' mode, toggles between doing local echoing of entered characters (for normal processing), and suppressing echoing of entered characters (for entering, say, a password). eeooff If tteellnneett is operating in LINEMODE or ``old line by line'' mode, entering this character as the first character on a line will cause this charac- ter to be sent to the remote system. The initial value of the eof character is taken to be the terminal's eeooff character. eerraassee If tteellnneett is in llooccaallcchhaarrss mode (see ttooggggllee llooccaallcchhaarrss below), aanndd if tteellnneett is operating in ``character at a time'' mode, then when this char- acter is typed, a TELNET EC sequence (see sseenndd eecc above) is sent to the remote system. The initial value for the erase character is taken to be the terminal's eerraassee character. eessccaappee This is the tteellnneett escape character (initially ``^['') which causes entry into tteellnneett command mode (when connected to a remote system). fflluusshhoouuttppuutt If tteellnneett is in llooccaallcchhaarrss mode (see ttooggggllee llooccaallcchhaarrss below) and the fflluusshhoouuttppuutt character is typed, a TELNET AO sequence (see sseenndd aaoo above) is sent to the remote host. The initial value for the flush character is taken to be the terminal's fflluusshh character. ffoorrww11 ffoorrww22 If tteellnneett is operating in 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 are taken from the terminal's eeooll and eeooll22 characters. iinntteerrrruupptt If tteellnneett is in llooccaallcchhaarrss mode (see ttooggggllee llooccaallcchhaarrss below) and the iinntteerrrruupptt character is typed, a TELNET IP sequence (see sseenndd iipp above) is sent to the remote host. The initial value for the interrupt character is taken to be the terminal's iinnttrr character. kkiillll If tteellnneett is in llooccaallcchhaarrss mode (see ttooggggllee llooccaallcchhaarrss below), aanndd if tteellnneett is operating in ``character at a time'' mode, then when this char- acter is typed, a TELNET EL sequence (see sseenndd eell above) is sent to the remote system. The initial value for the kill character is taken to be the terminal's kkiillll character. llnneexxtt If tteellnneett is operating in LINEMODE or ``old line by line`` mode, then this character is taken to be the terminal's llnneexxtt character. The initial value for the lnext character is taken to be the terminal's llnneexxtt character. qquuiitt If tteellnneett is in llooccaallcchhaarrss mode (see ttooggggllee llooccaallcchhaarrss below) and the qquuiitt character is typed, a TELNET BRK sequence (see sseenndd bbrrkk above) is sent to the remote host. The initial value for the quit character is taken to be the terminal's qquuiitt character. rreepprriinntt If tteellnneett is operating in LINEMODE or ``old line by line`` mode, then this character is taken to be the terminal's rreepprriinntt character. The initial value for the reprint character is taken to be the terminal's rreepprriinntt character. rrllooggiinn This is the rlogin escape character. If set, the normal tteellnneett eessccaappee character will be ignored un- less it is preceded by this character at the be- ginning of a line. This character, at the begin- ning of a line, followed by a ``.'' will close the
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -