Familiar with telnet commands

Source: Internet
Author: User
Tags telnet program

The telnet remote protocol is used to facilitate management of heavy job operations and remote control. The use of telnet commands has been reflected in many applications. We used the interface number 3000 to connect the result to a remote host named downwind. sprl. umich. edu. We do this to use a special program to display weather forecasts. To make the connection successful, you must run the weather forecast program in the remote host and the program should be received on interface 3000. In many cases, a host can support more than one connection at the same time on a specific interface. For example, the preceding special weather forecast server can support 100 users at the same time.

Telnet coder: CTRL-]

When you talk to a remote machine, there is a way to interrupt your work and directly input additional commands to telnet. For example, if you have difficulty communicating with a remote machine, you can interrupt your work conversation and switch back to the telnet status, and then enter the quit command.

Press CTRL-] as a special combination key. Press CTRL and then press. When you press this key combination, it sends a signal to telnet, pause the remote connection, and display the prompt:

Telnet>

Now you can enter any telnet command at will and we will introduce several important commands ). After some commands are run, you can run telnet to automatically restore the remote connection. In addition, after the telnet> prompt, you can press the Enter key to restore the connection at any time.

A key such as CTRL-] is called a "coder" in technical terms ". Many programs allow the use of a code to request special services.

In the Unix world, the "^" character is used to represent the CTRL key. For example, CTRL-C writes ^ C.

Now we can understand the information displayed on the screen after telnet determines the remote connection: Escape character is '^]'

This prompt reminds you that the Telnet code is CTRL-]. Of course we can also change it to another character, but this is usually not necessary.

Telnet command

You can choose to use different commands at any time after the telnet> prompt. This section describes some of the most important commands. First, we also want to remind you that, without entering any command, you only need to press the Enter key. telnet will reconnect to the remote connection.

To display the abstract of all telnet commands, can you enter it? Character:

?

The following is a typical summary:

Commands may be abbreviated, Commands are :( abbreviation command, command :)
Closeclose current connection (close connection)
Displaydisplay operating parameters (display operation parameters)
Modetry to enter line-by-line or character-at-a-timt mode (trial networking)
Openconnect to a site)
Quitexittelnet (Exit)
Sendtransmit special characters 'send? 'For more) (transfer special characters)
Setset operating parameters 'set? 'For more) (set operation parameters)
Statusprint status information (print real-time information)
Toggletoggle operating parameters 'toggle? 'For more) (repeated operation parameters)
Zsuspendtelnet (paused)
? Print help information)

Among all these commands, the most important ones are :?, Open, close, quit, and z. The open command tells telnet to connect to a remote computer. After entering open, add the specific address of the computer.

Example: open fuzzball.ucsb.edu

The close command terminates the remote connection but does not stop the telnet program. The following example shows its usefulness:

Suppose you are working on a remote machine and there is a fault. For some reason, the remote machine does not seem to accept your command. No matter what commands you enter, the remote machine does not respond, and you cannot even exit. One solution is to press CTRL-], wait for the telnet> prompt, and enter the close command. Now you can reestablish a connection with the same host. Of course, you can also connect to another host.

Quit: the telnet command is used to stop the telnet program. If a remote connection program is still running, quit will terminate it. Before you close a connection or exit telnet, remember to log out on the remote host. Most hosts will automatically cancel you after the connection is interrupted, but this operation will be better. This ensures that any program you run Exits normally and all data is stored.

The remaining commands are not very important except the Z commands we will introduce in the next section), and you may never use them. Most of these commands are the technical features used to control communication conversations, and you may not notice them. If you want to display a further summary of the send, set, or toggle command, you can add? Character. For example:

Send?

If you want

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.