Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux reset command

Linux reset command

Linux Command Reference Linux Command Reference

The Linux reset command is actually the same command as tset; its purpose is to set the state of the terminal. Generally, this command automatically determines the current terminal type from environment variables, the command line, or other configuration files. If the specified type is '?', the program will ask the user to enter the terminal type.

Because this program restores the terminal to its original state, besides being used at login, you can also use it to reset the terminal when it enters a strange state due to abnormal program execution. For example, if you accidentally cat a binary file to the terminal, the terminal often stops responding to keyboard input or responds with strange characters. In such cases, you can use reset to restore the terminal to its original state.

Syntax

tset [-IQqrs] [-] [-e ch] [-i ch] [-k ch] [-m mapping] [terminal]

Parameter Description:

Example

Have the user enter a terminal type and set the terminal to that type's default state

# reset ?

Set the erase character to control-h

# reset -e ^B

Display the setup string on screen

# reset -s

Erase is control-B (^B).

Kill is control-U (^U).

Interrupt is control-C (^C).

TERM=xterm;

Linux Command Reference Linux Command Reference