English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux getty command

Linux Command大全

The Linux getty command is used to set the terminal mode, line speed, and control line.

The getty command is necessary at the startup of UNIX-like operating systems3one of the steps.

Syntax

getty [-h][-d<configuration file>][-r<delay seconds>][-t<timeout seconds>][-w<wait string>][Terminal Number][Line Speed<Terminal Type><Control Line>] or getty [-c<definition file>]

Parameters:

  • -c<definition file> Specify the definition file, the default is/etc/gettydefs.
  • -d<configuration file> Specify the configuration file, the default is/etc/conf.getty.
  • -h Force disconnection when the transmission rate is 0.
  • -r<delay seconds> Set the delay time.
  • -t<timeout seconds> Set the time to wait for login.
  • -w<wait string> Set the wait response string.

Online Examples

Open Terminal:

# getty tty7

Linux Command大全