Introduction
Examples
Agetty Syntax
The basic syntax of agetty is as follows:
agetty [options]
Options:
-h: Print help message
-L: Local mode (do not do remote login)
-m: Set the gettydefs entry to use
-s: Set the baud rate to use
-t: Set the terminal type to use
-w: Wait for a carrier detect signal
Examples
1. To open a login prompt on a serial port with a baud rate of 9600 and a terminal type of vt100, use the following command:
agetty -s 9600 -t vt100 /dev/ttyS0
2. To open a login prompt on a virtual console with a baud rate of 115200 and a terminal type of xterm, use the following command:
agetty -s 115200 -t xterm /dev/tty1
3. To open a login prompt on a serial port with a baud rate of 9600 and a terminal type of vt100, and wait for a carrier detect signal, use the following command:
agetty -s 9600 -t vt100 -w /dev/ttyS0