Use the getty command of linux to set the terminal mode
This article mainly introduces the use of linux getty command to set the terminal mode, the article is very detailed, has a certain reference value, interested friends must read it!
The getty command sets the terminal mode, connection rate, and control lines.
Getty command is one of the three necessary steps when an operating system such as UNIX starts, which is used to open the terminal, initialize the terminal, and set up the terminal. The getty command sets and manages terminal lines and ports. The getty command is run by the init command. The getty command is linked to the terminal status administrator program. The terminal status administrator program provides the compound function of terminal control and login. When called as a getty command, the terminal state administrator program provides the usual port management functions.
Syntax format: getty [parameters]
Common parameters:
-c specifies the definition profile, default is / etc/gettydefs-d to specify the configuration profile, default is / etc/conf.getty-h to force disconnect when the transfer rate is 0-r to set delay time-t to set the time to wait for login-w sets the string waiting for response
Reference example
Open the terminal:
[root@linuxcool ~] # getty tty7 above is all the contents that use the getty command of linux to set the terminal mode. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!