Linux Comm Reset
# Linux reset command
[ Linux Command Manual](#)
The Linux reset command is actually the same as the tset command. Its purpose is to set the state of the terminal. Generally, this command automatically determines the current terminal type from environment variables, command line arguments, or other configuration files. If the specified type is '?', the program will prompt the user to input the terminal type.
Since this program resets the terminal to its original state, besides being used during login, you can also use it to reset the terminal when the system terminal enters a strange state due to abnormal program execution. For example, if you accidentally use the `cat` command to display a binary file in the terminal, it often causes the terminal to stop responding to keyboard input or respond with strange characters. At this time, you can use `reset` to restore the terminal to its original state.
### Syntax
tset
**Parameter Description**:
* -p Display the terminal type on the screen without performing the setting action. This command can be used to obtain the current terminal type.
* -e ch Set the erase character to ch
* -i ch Set the interrupt character to ch
* -k ch Set the line kill character to ch
* -I Do not perform the setting action. If the -Q option is not used, the current values of the erase, interrupt, and line kill characters will still be displayed on the screen.
* -Q Do not display the values of the erase, interrupt, and line kill characters on the screen.
* -r Print the terminal type on the screen.
* -s Send the command string used to set TERM to the terminal, usually used in .login or .profile.
### Examples
Prompt the user to input a terminal type and set the terminal to the default state for that type
# reset ?
Set the erase character to control-h
# reset -e ^B
Display the setting string on the screen
# reset -sErase is control-B (^B).Kill is control-U (^U).Interrupt is control-C (^C). TERM=xterm;
[ Linux Command Manual](#)
YouTip