Latest web development tutorials

Linux reset command

Linux command Daquan Linux command Daquan

Linux reset and tset command is actually with a command, its purpose is to set the terminal state. Generally, this command automatically from the environment variables, command-line or other configuration files determine the current terminal set patterns. If patterns are '?', Then the program will ask the user to enter the terminal type.

Since this program will set the terminal back to the original state, except during login, the terminal because when the system does not perform properly and get into some strange state, you can also use it to reset the terminal for example, not o careful binary files with the cat command into the terminal, the terminal will often not respond to keyboard input, or a response to a question some strange characters. At this point you can reset the terminal return to its original state.

grammar

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

Parameter Description:

  • -p terminal categories will be displayed on the screen, but is not set in motion. This command can be used to get the current terminal categories.
  • -e ch will erase the character set to ch
  • -i ch interrupt character set to ch
  • -k ch will remove one row of characters is set to ch
  • -I Do not set the action, if no option -Q, then, erase, interrupt and delete characters will still be sent to the current value on the screen.
  • -Q Do not display erase, interrupt value and delete characters to the screen.
  • -r category will be printed on the terminal screen.
  • Setting TERM with the -s command string to the type of terminal usually used in .login or .profile.

Examples

Allows users to enter a terminal type and other type terminals provided to the other by default

# reset ?

The erase character set control-h

# reset -e ^B

The setting string is displayed on the screen

# reset -s
Erase is control-B (^B).
Kill is control-U (^U).
Interrupt is control-C (^C).
TERM=xterm;

Linux command Daquan Linux command Daquan