We have previously introduced some definitions of the Telnet protocol. We know that Telnet allows us to perform some remote monitoring and use. In the Telnet service application, we usually use the Telnet sub-command to perform operations. Here we will focus on introducing it to you.
Telnet sub-command Close:
This command terminates the connection. It can automatically disconnect from the remote system, or use it to exit Telnet. This command can be used if you want to quit when you enter a network host.
Telnet sub-command open:
It is used to connect to a named machine, and the name or IP address of the target machine must be given. If no machine name is provided, Telnet selects a machine name. Note that you should use "close" to close any existing connection before using the "Open" command.
Telnet sub-command Set ECHO:
The local response is On or Off. Whether to display the output content on the screen. It is basically the same as dos echo. If the machine is on echo on and you want to change it to OFF, You can input set echo and change it back to echo off. Then you can type set echo. (This is short. If you have any questions, contact me)
Telnet sub-command Set escape char:
Create a "escape" character to a special symbol. to replace it with a certain control symbol, you can use "asis" or enter the symbol "^" and add the letter B (for example: ^ B ). During normal operation, the character "escape" is not required, and the symbol used as "escape" cannot be used again. This is similar to setting the true meaning of each key on the keyboard in many programs. However, if you are running a daisy-chained application system, it is useful to re-determine the features of the "escape" character. For example, use Telnet from system A to system B, and then use Telnet to register and enter system C. If a fault occurs when the system is working on system C, when the "escape" symbol is the same, the connection between system B and system C cannot be interrupted. Enter the "escape" identifier, which is always in the command mode of system. If different "escape" symbols are used in each Telnet part, you can select one of the command modes by typing an appropriate symbol, this can also be used for terminal simulation in other applications ).
Telnet sub-command Quit:
Use it to smoothly launch the Telnet program.
Telnet sub-command Z:
Retain Telnet, but temporarily return to the local system to execute other commands. Connections in Telnet and other options are retained when Telnet is restored.
Telnet sub-command Carriage Return:
Returns a command from the command mode to the connected remote machine. In addition, there are many other commands that can launch the command mode. The following example shows how to enter porky.math.ukans.edu from registration, enter the command mode, and return porky ::
- telnet porky.math.ukans.edu
- Trying 129.237.128.11...
- Connected to porky.math.ukans.edu.
- Escape character is '^]'.
- SunOS UNIX(porky)
- login:wl
- password:
- Last Login: Tue Mar 28 05:35 from ns.bta.net.cn
- SunOS Release 4.1.3_U1(SLIPPERY1) #3: Sun Nov 20 23:47:23 CST 1999
- No match.
- if:Expression syntax.
- porky/serv/wl%cd/
- porky/%CTRL-]
- telnet:?
- Commands may be abbreviated, Command are:
- open connect to a site
- close close currect connection
- quit exitTelnet
- display display operating parameters
- send transmit special characters ('send ?' for more)
- set set operating parameters('set ?' for more)
- status print status information
- toggle toggle operating parameters('toggle ?' for more)
- mode try to enter line-by-line or character-at-a-time mode
- ? print help information
- telnet:set escape ^b
- escape character is ’^b’
- porky/%logout
- ns.bta.net.cn%