Linux reset command details how to use the Linux reset command

Source: Internet
Author: User
Tags reset

Generally, this command automatically determines the type of the current terminal from the environment variable, command column, or other configuration files. If the specified type is '? ', This program requires the user to enter the terminal type.

Because this program will set the terminal machine back to the original state, in addition to being used in login, when the system terminal enters some strange state due to abnormal program execution, you can also use it to reset the terminal. For example, if you accidentally use cat commands to import binary files to the terminal, some terminals usually do not respond to keyboard input or some strange character problems. In this case, you can use reset to restore the terminal to the original state.

Syntax

Tset [-IQqrs] [-] [-e ch] [-I ch] [-k ch] [-m mapping] [terminal]

Parameter description:

  • -P Category displays the terminal category on the screen, but does not set the action. This command can be used to obtain the category of the current terminal.

  • -E ch delimiter: set erase to ch

  • -I ch delimiter: sets the delimiter to ch.

  • -K ch keys: Set the characters of the deleted line to ch.

  • -I recommend that you do not set the operation. If option-Q is not used, the current values of erase, interrupt, and delete characters will still be sent to the screen.

  • -Q: Do not display the values of erase, interrupt, and delete characters on the screen.

  • -R branch prints the terminal category on the screen.

  • -S branch sends the command used to set the TERM to the terminal in the string type, which is usually used in. login or. profile.

Instance

Let the user enter a terminal type and set the terminal to the preset status of this type

# Reset?

Set erase characters to control-h

# Reset-e ^ B

Display the set strings on the screen

# Reset-s

Erase is control-B (^ B ).

Kill is control-U (^ U ).

Interrupt is control-C (^ C ).

TERM = xterm;

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.