Linux getty Command
The Linux getty command is used to set terminal mode, connection speed, and line discipline.
The getty command is one of the three essential steps when a UNIX-like operating system starts up.
Syntax
getty [-h][-d<组态配置文件>][-r<延迟秒数>][-t<超时秒数>][-w<等待字符串>][终端机编号][连线速率<终端机类型><管制线路>] 或 getty [-c<定义配置文件>]
Parameters:
- -c
Specifies the definition configuration file, defaulting to /etc/gettydefs. - -d
Specifies the configuration file, defaulting to /etc/conf.getty. - -h Force a disconnection when the transmission rate is 0.
- -r
Set the delay time. - -t
Set the time to wait for login. - -w
Set the string to wait for in a response.
Example
Open a terminal:
# getty tty7
Linux Command Reference