Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the reset command of linux to set the status of the terminal

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the use of linux reset command to set the status of the terminal, the article is very detailed, has a certain reference value, interested friends must read it!

The Linux reset command is actually the same command as tset, and its purpose is to set the state of the terminal. In general, this command automatically determines the current terminal type from the environment variable, command line, or other configuration file. If the specified type is'?' If so, the program will ask the user to enter the type of terminal.

Because this program will set the terminal back to its original state, in addition to being used in login, when the system terminal enters some strange state because of the abnormal execution of the program, you can also use it to reset the terminal o for example, accidentally enter the binary file into the terminal with cat instructions, there will often be terminals that no longer respond to keyboard input, or respond to questions about strange characters. At this point, you can use reset to restore the terminal to its original state.

Syntax format: reset [parameters]

Common parameters:

-- help online help-- vesion displays version information-- p displays the terminal category on the screen without setting the action. This command can be used to get the type of the current terminal-e ch sets the erase character to ch-i ch, the interrupt character to ch-k ch, the character to delete a line to ch-l, if you do not use the option-Q The current values of erase, interrupt, and delete characters are still sent to the screen-Q do not display the values of erase, interrupt and delete characters on the screen-r print the terminal category on the screen-s send the commands for setting TERM to the terminal in the form of a string, usually used in .login or .profile

Reference example

Let the user enter a terminal type and set the terminal to the default state of that type:

[root@linuxcool ~] # reset?

Set the erase character to control-h:

[root@linuxcool] # reset-e ^ B

Display the string for the setting on the screen:

[root@linuxcool ~] # reset-s is all about setting the status of the terminal using linux's reset command. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report