General telnet commands

Source: Internet
Author: User
Tags exit in telnet program

Telnet commands can be typed by DOS, so these commands are easy to use. Here we will introduce several common commands. There are many commands in the telnet program. You can enter telnet or ^] on the keyboard to enter the special command status. At the command status prompt (telnet>), type A question mark (?), You can get the telnet command list. Commands available for telnet programs of different versions are different and need to be used for trial. Most telnet programs are equipped with the following commands:

 
 
  1. dns# telnet  
  2. telnet> ?  
  3. Commands may be abbreviated. Commands are:  
  4. close close current connection  
  5. logout forcibly logout remote user and close the connection  
  6. display display operating parameters  
  7. mode try to enter line or character mode ('mode ?' for more)  
  8. open connect to a site  
  9. quit exit telnet  
  10. send transmit special characters ('send ?' for more)  
  11. set set operating parameters ('set ?' for more)  
  12. unset unset operating parameters ('unset ?' for more)  
  13. status print status information  
  14. toggle toggle operating parameters ('toggle ?' for more)  
  15. z suspend telnet  
  16. ? print help information  
  17. ! invoke a subshell  
  18. environ change environment variables ('environ ?' for more)  
  19. slc change state of special charaters ('slc ?' for more)  
  20. telnet> 

The following describes the functions of each command.

Close ends the established or ongoing connection. Automatically disconnect the local and remote systems. Sometimes it is locked for some reason when you enter a network. The remote host system cannot identify any commands that a local user typed on the keyboard, or even use the logout command to exit the telnet status, at this time, you can use the ^] key to enter the telnet command status, and then use the close command to cut off the current connection and start a new login. After you use the close command to disconnect a connection, you can use o or open to add the host name and then open a new connection.

Display displays the current operating parameters of the system. In the telnet command status, type display and press Enter. The screen displays the operation parameters of the current system, for example, whether to send the interrupt character in the emergency status, and whether to re-confirm the control character, and the meanings of ^ E (response), ^] (entering command status), ^ C (interrupted), ^ U (deleting a line) and other keyboard commands.

Line: the local system sends each line of information to the remote host once, or the character-by-character mode (character): Each line-by-line mode enters the line-by-line mode, the local system sends the message once to the remote host.

The open (or o) Host Name establishes a telnet connection with the specified host, which is the same as the "telnet host name" command. Before opening a new connection, all connections must be terminated. That is to say, a local machine in the same window can only be connected to a remote host within the same time. In Windows or Windows-like graphical interface, multiple Windows can be opened, establish connections with multiple hosts ). This is a feature of telnet.

Quit exits the telnet application process and returns to the local system. Any telnet command no longer works.

Logout forcibly closes the logon user account, closes the connection, and returns to the local system. It has the same function as EXIT in many systems ).

After you have logged on to a host, you can use the send command to send some information to the remote system. For details about the send command, you can enter send? Command.

Set sets all operation parameters that can be displayed using the display command. For example, set ^ E to the command to start the local response switch, ^] to the command to enter the telnet command status, ^ U to delete a row, and use? Displays help information, and so on. For example, "set echo ^ E" indicates that the local response switch is ^ E. For detailed information about the set command, you can enter the set? Command.

Unset cancels the operation parameters displayed by the displayed command. It is opposite to the set command function. Status: displays the current status. This command is valid only when you have logged on to a host. For example,

 
 
  1. telnet> status  
  2. No connection  
  3. Escape character is“^]’ 

Toggle activates some operation parameters, which determine the telnet response method to the event. For example, after the activation command is issued, the system automatically outputs all the storage results (autofluh). After receiving the fault feedback, automatic cring (crmod) and so on. For more information about the toggle command, can I use toggle In the telnet command status? Command.

Z temporarily suspends telnet communication so that the local system can execute other commands, such as returning to the local system to see if there are any new emails. Generally, the fg command can restore the original join or use the open (or o) command to create a new join. Some systems exit the telnet status after executing the z command.

? Displays help information to help you understand which commands and usage of each command are provided by the system.

! The three commands environ and slc are commands in UNIX systems. Some systems do not provide them, so I will not explain them in detail here.

It should be noted that, although the current telnet connection can be closed by using the close or quit command, it is best to use logout to exit the remote system to ensure that the system works normally. To exit the logout mode, you can ensure that the telnet process is terminated and the data disk you want is saved.

The above commands are all commands for the telnet application, so they are only valid in the telnet status. Beginners sometimes enter commands such as open and close on a local machine with a telnet application. Of course, these commands cannot be recognized by the local system. Although there is a telnet program on the local machine, it does not enter the telnet status. The local machine may be loaded with client programs with many Internet tools. You can enter different commands, the system executes different programs.

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: info-contact@alibabacloud.com 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.