Last Updated : 15 Oct, 2024
agetty is a Linux version of getty. getty short for "get tty" is a Unix program running on a host computer that manages physical or virtual terminals to allow multi-user access. Linux provides a virtual terminal(tty) which is similar to the regular Linux terminal. agetty command opens a virtual terminal(tty port), prompts for a login name, and invokes the /bin/login command.
Syntaxagetty [options] port [baud_rate...] [term]
where,
-8
, --8bits
Assume 8-bit tty, meaning full 8-bit data transmission. -a
, --autologin
Automatically logs in the specified user without a password prompt. -c
, --noreset
Do not reset control mode upon start. -E
, --remote
Allows passing a hostname to login for remote connections (e.g., via telnetd
). -h
, --flow-control
Enables hardware flow control using CTS/RTS handshaking for smoother communication. -i
, --noissue
Do not display the issue file (custom login message). -J
, --noclear
Do not clear the screen before displaying the login prompt. -m
, --extract-baud
Extract the baud rate from the terminal device during connection. -n
, --skip-login
Skip the login prompt and go directly to session (useful for auto-login setups). -p
, --login-pause
Wait for the user to press any key before showing the login prompt. -R
, --hangup
Perform a virtual hangup (vhangup) to disconnect the specified terminal. -s
, --keep-baud
Attempt to keep the previously used baud rate for the terminal connection. -t
, --timeout
Sets a timeout (in seconds) to terminate the session if the login prompt is not completed in time. -U
, --detect-case
Detect uppercase-only terminals and adjust login accordingly. --help
Display a help message with a list of all available options. --version
Display the current version of the agetty
command.
For more details about the options you can run the following command on the terminal:
agetty --help
To display the version information.
6. agetty -a -h -t 60 -U -s -m tty 9600 vt100The agetty command is an essential tool for managing terminal sessions in Linux, particularly for embedded systems, servers, and environments requiring serial connections. With its numerous options, such as autologin, flow control, timeout settings, and baud rate management, agetty provides robust control over terminal and user session management.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4