In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what is the use of the stty command in Linux. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Linux common commands stty commands modify the relevant settings of the terminal command line.
Stty modifies the relevant settings of the terminal command line
Syntax stty (options) (parameters) option-a: print all current configurations in an easy-to-read way;-g: print all current configurations in stty readable mode. Parameter terminal settings: specify the setting options for the terminal command line.
For an instance, the method of outputting uppercase is prohibited under the command line:
Stty iuclc # enable stty-iuclc # restore disables lowercase output from the command line:
Stty olcuc # enable stty-olcuc # restore the number of rows and columns printed out of the terminal:
Stty size's method of changing Ctrl+D:
The stty eof "string" system defaults to Ctrl+D to indicate the end of the file, and in this way, it can be changed!
Mask the display:
Stty-echo # disable echo stty echo # Open echo test method:
Stty-echo;read;stty echo;read ignores carriage returns:
Stty igncr # enable stty-igncr # recovery timing input:
Timeout_read () {timeout=$1 old_stty_settings= `stty-g` # save current settings stty-icanon min 0 time # set 10secondsnot 100seconds eval read varname # = read $varname stty "$old_stty_settings" # recover settings} an easier way is to use the-t option of the read command:
Read-t 10 varname about "what is the use of stty commands in Linux?" this article ends here. I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.