AGETTY Linux Command

What is Linux agetty Command?

Explanation

AGETTY Command:

The agetty command is the shortform of the "Alternative Linux Getty". This command opens a tty port, prompts for a login name and invokes the /bin/login command. It is normally invoked by init(8). Use agetty --help options to know various options that could be used with the "agetty" command.

SYNTAX :


agetty [options] line baud_rate,... [termtype] agetty [options] baud_rate,... line [termtype]

ARGUEMENTS:


port A path name relative to the /dev directory. If a "-" is specified, agetty assumes that its standard input is already connected to a tty port and that a connection to a remote user has already been established.
Under System V, a "-" port argument should be preceded by a "--".
baud_rate,... A comma-separated list of one or more baud rates. Each time agetty receives a BREAK character it advances through the list, which is treated as if it were circular.
Baud rates should be specified in descending order, so that the null character (Ctrl-@) can also be used for baud rate switching.
term The value to be used for the TERM environment variable. This overrides whatever init(8) may have set, and is inherited by login and the shell.

OPTIONS:


-8, --8bits assume 8-bit tty
-a, --autologin <user> login the specified user automatically
-c, --noreset do not reset control mode
-f, --issue-file <file> display issue file
-h, --flow-control enable hardware flow control
-H, --host <hostname> specify login host
-i, --noissue do not display issue file
-I, --init-string <string> set init string
-l, --login-program <file> specify login program
-L, --local-line force local line
-m, --extract-baud extract baud rate during connect
-n, --skip-login do not prompt for login
-o, --login-options <opts> options that are passed to login
-p, --loginpause wait for any key before the login
-R, --hangup do virtually hangup on the tty
-s, --keep-baud try to keep baud rate after break
-t, --timeout <number> login process timeout
-U, --detect-case detect uppercase terminal
-w, --wait-cr wait carriage-return
--noclear do not clear the screen before prompt
--nonewline do not print a newline before issue
--no-hostname no hostname at all will be shown
--long-hostname show full qualified hostname
--version output version information and exit
--help display help information and exit

Ask Questions

Ask Question