agetty Command Examples
Alternative
getty: Open attyport, prompt for a login name, and invoke the/bin/logincommand. It is normally invoked byinit. Note: the baud rate is the speed of data transfer between a terminal and a device over a serial connection. More information: https://manned.org/agetty.
- Connect 
stdinto a port (relative to/dev) and optionally specify a baud rate (defaults to 9600): 
agetty {{tty}} {{115200}}
- Assume 
stdinis already connected to attyand set a timeout for the login: 
agetty {{[-t|--timeout]}} {{timeout_in_seconds}} -
- Assume the 
ttyis 8-bit, overriding theTERMenvironment variable set byinit: 
agetty {{[-8|--8bits]}} - {{term_var}}
- Skip the login (no login) and invoke, as root, another login program instead of 
/bin/login: 
agetty {{[-n|--skip-login]}} {{[-l|--login-program]}} {{login_program}} {{tty}}
- Do not display the pre-login (issue) file (
/etc/issueby default) before writing the login prompt: 
agetty {{[-i|--noissue]}} -
- Change the root directory and write a specific fake host into the 
utmpfile: 
agetty {{[-r|--chroot]}} {{/path/to/root_directory}} {{[-H|--host]}} {{fake_host}} -