Induction of key Telnet sub-commands

Source: Internet
Author: User
Tags telnet program

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 from registration, enter the command mode, and return porky ::

  1. telnet   
  2. Trying   
  3. Connected to   
  4. Escape character is '^]'.   
  5. SunOS UNIX(porky)   
  6. login:wl   
  7. password:   
  8. Last Login: Tue Mar 28 05:35 from   
  9. SunOS Release 4.1.3_U1(SLIPPERY1) #3: Sun Nov 20 23:47:23 CST 1999   
  10. No match.   
  11. if:Expression syntax.   
  12. porky/serv/wl%cd/   
  13. porky/%CTRL-]   
  14. telnet:?   
  15. Commands may be abbreviated, Command are:   
  16. open connect to a site   
  17. close close currect connection   
  18. quit exitTelnet  
  19. display display operating parameters   
  20. send transmit special characters ('send ?' for more)   
  21. set set operating parameters('set ?' for more)   
  22. status print status information   
  23. toggle toggle operating parameters('toggle ?' for more)   
  24. mode try to enter line-by-line or character-at-a-time mode   
  25. ? print help information   
  26. telnet:set escape ^b   
  27. escape character is ’^b’   
  28. porky/%logout   

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.