{
    "mode": "man",
    "parameter": "agetty",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/agetty/8/json",
    "generated": "2026-05-30T07:09:17Z",
    "synopsis": "agetty [options] port [baudrate...] [term]",
    "sections": {
        "NAME": {
            "content": "agetty - alternative Linux getty\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "agetty [options] port [baudrate...] [term]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "agetty opens a tty port, prompts for a login name and invokes the /bin/login command. It is\nnormally invoked by init(8).\n\nagetty has several non-standard features that are useful for hardwired and for dial-in lines:\n\n•   Adapts the tty settings to parity bits and to erase, kill, end-of-line and uppercase\ncharacters when it reads a login name. The program can handle 7-bit characters with even,\nodd, none or space parity, and 8-bit characters with no parity. The following special\ncharacters are recognized: Control-U (kill); DEL and backspace (erase); carriage return\nand line feed (end of line). See also the --erase-chars and --kill-chars options.\n\n•   Optionally deduces the baud rate from the CONNECT messages produced by\nHayes(tm)-compatible modems.\n\n•   Optionally does not hang up when it is given an already opened line (useful for call-back\napplications).\n\n•   Optionally does not display the contents of the /etc/issue file.\n\n•   Optionally displays an alternative issue files or directories instead of /etc/issue or\n/etc/issue.d.\n\n•   Optionally does not ask for a login name.\n\n•   Optionally invokes a non-standard login program instead of /bin/login.\n\n•   Optionally turns on hardware flow control.\n\n•   Optionally forces the line to be local with no need for carrier detect.\n\nThis program does not use the /etc/gettydefs (System V) or /etc/gettytab (SunOS 4) files.\n",
            "subsections": []
        },
        "ARGUMENTS": {
            "content": "port\nA path name relative to the /dev directory. If a \"-\" is specified, agetty assumes that\nits standard input is already connected to a tty port and that a connection to a remote\nuser has already been established.\n\nUnder System V, a \"-\" port argument should be preceded by a \"--\".\n\nbaudrate,...\nA comma-separated list of one or more baud rates. Each time agetty receives a BREAK\ncharacter it advances through the list, which is treated as if it were circular.\n\nBaud rates should be specified in descending order, so that the null character (Ctrl-@)\ncan also be used for baud-rate switching.\n\nThis argument is optional and unnecessary for virtual terminals.\n\nThe default for serial terminals is keep the current baud rate (see --keep-baud) and if\nunsuccessful then default to '9600'.\n\nterm\nThe value to be used for the TERM environment variable. This overrides whatever init(1)\nmay have set, and is inherited by login and the shell.\n\nThe default is 'vt100', or 'linux' for Linux on a virtual terminal, or 'hurd' for GNU\nHurd on a virtual terminal.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-8 --8bits",
                    "content": "Assume that the tty is 8-bit clean, hence disable parity detection.\n",
                    "flag": "-8",
                    "long": "--8bits"
                },
                {
                    "name": "-a --autologin",
                    "content": "Automatically log in the specified user without asking for a username or password. Using\nthis option causes an -f username option and argument to be added to the /bin/login\ncommand line. See --login-options, which can be used to modify this option’s behavior.\n\nNote that --autologin may affect the way in which getty initializes the serial line,\nbecause on auto-login agetty does not read from the line and it has no opportunity\noptimize the line setting.\n",
                    "flag": "-a",
                    "long": "--autologin"
                },
                {
                    "name": "-c --noreset",
                    "content": "Do not reset terminal cflags (control modes). See termios(3) for more details.\n",
                    "flag": "-c",
                    "long": "--noreset"
                },
                {
                    "name": "-E --remote",
                    "content": "Typically the login(1) command is given a remote hostname when called by something such\nas telnetd(8). This option allows agetty to pass what it is using for a hostname to\nlogin(1) for use in utmp(5). See --host, login(1), and utmp(5).\n\nIf the --host fakehost option is given, then an -h fakehost option and argument are added\nto the /bin/login command line.\n\nIf the --nohostname option is given, then an -H option is added to the /bin/login command\nline.\n\nSee --login-options.\n",
                    "flag": "-E",
                    "long": "--remote"
                },
                {
                    "name": "-f --issue-file",
                    "content": "Specifies a \":\" delimited list of files and directories to be displayed instead of\n/etc/issue (or other). All specified files and directories are displayed, missing or\nempty files are silently ignored. If the specified path is a directory then display all\nfiles with .issue file extension in version-sort order from the directory. This allows\ncustom messages to be displayed on different terminals. The --noissue option will\noverride this option.\n",
                    "flag": "-f",
                    "long": "--issue-file"
                },
                {
                    "name": "--show-issue",
                    "content": "Display the current issue file (or other) on the current terminal and exit. Use this\noption to review the current setting, it is not designed for any other purpose. Note that\noutput may use some default or incomplete information as proper output depends on\nterminal and agetty command line.\n",
                    "long": "--show-issue"
                },
                {
                    "name": "-h, --flow-control",
                    "content": "Enable hardware (RTS/CTS) flow control. It is left up to the application to disable\nsoftware (XON/XOFF) flow protocol where appropriate.\n",
                    "flag": "-h",
                    "long": "--flow-control"
                },
                {
                    "name": "-H --host",
                    "content": "Write the specified fakehost into the utmp file. Normally, no login host is given, since\nagetty is used for local hardwired connections and consoles. However, this option can be\nuseful for identifying terminal concentrators and the like.\n",
                    "flag": "-H",
                    "long": "--host"
                },
                {
                    "name": "-i --noissue",
                    "content": "Do not display the contents of /etc/issue (or other) before writing the login prompt.\nTerminals or communications hardware may become confused when receiving lots of text at\nthe wrong baud rate; dial-up scripts may fail if the login prompt is preceded by too much\ntext.\n",
                    "flag": "-i",
                    "long": "--noissue"
                },
                {
                    "name": "-I --init-string",
                    "content": "Set an initial string to be sent to the tty or modem before sending anything else. This\nmay be used to initialize a modem. Non-printable characters may be sent by writing their\noctal code preceded by a backslash (\\). For example, to send a linefeed character (ASCII\n10, octal 012), write \\12.\n",
                    "flag": "-I",
                    "long": "--init-string"
                },
                {
                    "name": "-J --noclear",
                    "content": "Do not clear the screen before prompting for the login name. By default the screen is\ncleared.\n",
                    "flag": "-J",
                    "long": "--noclear"
                },
                {
                    "name": "-l --login-program",
                    "content": "Invoke the specified loginprogram instead of /bin/login. This allows the use of a\nnon-standard login program. Such a program could, for example, ask for a dial-up password\nor use a different password file. See --login-options.\n",
                    "flag": "-l",
                    "long": "--login-program"
                },
                {
                    "name": "-L --local-line",
                    "content": "Control the CLOCAL line flag. The optional mode argument is 'auto', 'always' or 'never'.\nIf the mode argument is omitted, then the default is 'always'. If the --local-line option\nis not given at all, then the default is 'auto'.\n\nalways\nForces the line to be a local line with no need for carrier detect. This can be\nuseful when you have a locally attached terminal where the serial line does not set\nthe carrier-detect signal.\n\nnever\nExplicitly clears the CLOCAL flag from the line setting and the carrier-detect signal\nis expected on the line.\n\nauto\nThe agetty default. Does not modify the CLOCAL setting and follows the setting\nenabled by the kernel.\n",
                    "flag": "-L",
                    "long": "--local-line"
                },
                {
                    "name": "-m --extract-baud",
                    "content": "Try to extract the baud rate from the CONNECT status message produced by\nHayes(tm)-compatible modems. These status messages are of the form:\n\"<junk><speed><junk>\". agetty assumes that the modem emits its status message at the same\nspeed as specified with (the first) baudrate value on the command line.\n\nSince the --extract-baud feature may fail on heavily-loaded systems, you still should\nenable BREAK processing by enumerating all expected baud rates on the command line.\n",
                    "flag": "-m",
                    "long": "--extract-baud"
                },
                {
                    "name": "--list-speeds",
                    "content": "Display supported baud rates. These are determined at compilation time.\n",
                    "long": "--list-speeds"
                },
                {
                    "name": "-n --skip-login",
                    "content": "Do not prompt the user for a login name. This can be used in connection with the\n--login-program option to invoke a non-standard login process such as a BBS system. Note\nthat with the --skip-login option, agetty gets no input from the user who logs in and\ntherefore will not be able to figure out parity, character size, and newline processing\nof the connection. It defaults to space parity, 7 bit characters, and ASCII CR (13)\nend-of-line character. Beware that the program that agetty starts (usually /bin/login) is\nrun as root.\n",
                    "flag": "-n",
                    "long": "--skip-login"
                },
                {
                    "name": "-N --nonewline",
                    "content": "Do not print a newline before writing out /etc/issue.\n",
                    "flag": "-N",
                    "long": "--nonewline"
                },
                {
                    "name": "-o --login-options",
                    "content": "Options and arguments that are passed to login(1). Where \\u is replaced by the login\nname. For example:\n\n--login-options '-h darkstar —— \\u'\n\nSee --autologin, --login-program and --remote.\n\nPlease read the SECURITY NOTICE below before using this option.\n",
                    "flag": "-o",
                    "long": "--login-options"
                },
                {
                    "name": "-p --login-pause",
                    "content": "Wait for any key before dropping to the login prompt. Can be combined with --autologin to\nsave memory by lazily spawning shells.\n",
                    "flag": "-p",
                    "long": "--login-pause"
                },
                {
                    "name": "-r --chroot",
                    "content": "Change root to the specified directory.\n",
                    "flag": "-r",
                    "long": "--chroot"
                },
                {
                    "name": "-R --hangup",
                    "content": "Call vhangup(2) to do a virtual hangup of the specified terminal.\n",
                    "flag": "-R",
                    "long": "--hangup"
                },
                {
                    "name": "-s --keep-baud",
                    "content": "Try to keep the existing baud rate. The baud rates from the command line are used when\nagetty receives a BREAK character. If another baud rates specified then the original baud\nrate is also saved to the end of the wanted baud rates list. This can be used to return\nto the original baud rate after unexpected BREAKs.\n",
                    "flag": "-s",
                    "long": "--keep-baud"
                },
                {
                    "name": "-t --timeout",
                    "content": "Terminate if no user name could be read within timeout seconds. Use of this option with\nhardwired terminal lines is not recommended.\n",
                    "flag": "-t",
                    "long": "--timeout"
                },
                {
                    "name": "-U --detect-case",
                    "content": "Turn on support for detecting an uppercase-only terminal. This setting will detect a\nlogin name containing only capitals as indicating an uppercase-only terminal and turn on\nsome upper-to-lower case conversions. Note that this has no support for any Unicode\ncharacters.\n",
                    "flag": "-U",
                    "long": "--detect-case"
                },
                {
                    "name": "-w --wait-cr",
                    "content": "Wait for the user or the modem to send a carriage-return or a linefeed character before\nsending the /etc/issue file (or others) and the login prompt. This is useful with the\n--init-string option.\n",
                    "flag": "-w",
                    "long": "--wait-cr"
                },
                {
                    "name": "--nohints",
                    "content": "Do not print hints about Num, Caps and Scroll Locks.\n",
                    "long": "--nohints"
                },
                {
                    "name": "--nohostname",
                    "content": "By default the hostname will be printed. With this option enabled, no hostname at all\nwill be shown.\n",
                    "long": "--nohostname"
                },
                {
                    "name": "--long-hostname",
                    "content": "By default the hostname is only printed until the first dot. With this option enabled,\nthe fully qualified hostname by gethostname(3P) or (if not found) by getaddrinfo(3) is\nshown.\n\n--erase-chars string\nThis option specifies additional characters that should be interpreted as a backspace\n(\"ignore the previous character\") when the user types the login name. The default\nadditional 'erase' has been '#', but since util-linux 2.23 no additional erase characters\nare enabled by default.\n\n--kill-chars string\nThis option specifies additional characters that should be interpreted as a kill (\"ignore\nall previous characters\") when the user types the login name. The default additional\n'kill' has been '@', but since util-linux 2.23 no additional kill characters are enabled\nby default.\n\n--chdir directory\nChange directory before the login.\n\n--delay number\nSleep seconds before open tty.\n\n--nice number\nRun login with this priority.\n",
                    "long": "--long-hostname"
                },
                {
                    "name": "--reload",
                    "content": "Ask all running agetty instances to reload and update their displayed prompts, if the\nuser has not yet commenced logging in. After doing so the command will exit. This feature\nmight be unsupported on systems without Linux inotify(7).\n",
                    "long": "--reload"
                },
                {
                    "name": "--version",
                    "content": "Display version information and exit.\n",
                    "long": "--version"
                },
                {
                    "name": "--help",
                    "content": "Display help text and exit.\n",
                    "long": "--help"
                }
            ]
        },
        "EXAMPLE": {
            "content": "This section shows examples for the process field of an entry in the /etc/inittab file.\nYou’ll have to prepend appropriate values for the other fields. See inittab(5) for more\ndetails.\n\nFor a hardwired line or a console tty:\n\n/sbin/agetty 9600 ttyS1\n\nFor a directly connected terminal without proper carrier-detect wiring (try this if your\nterminal just sleeps instead of giving you a password: prompt):\n\n/sbin/agetty --local-line 9600 ttyS1 vt100\n\nFor an old-style dial-in line with a 9600/2400/1200 baud modem:\n\n/sbin/agetty --extract-baud --timeout 60 ttyS1 9600,2400,1200\n\nFor a Hayes modem with a fixed 115200 bps interface to the machine (the example init string\nturns off modem echo and result codes, makes modem/computer DCD track modem/modem DCD, makes\na DTR drop cause a disconnection, and turns on auto-answer after 1 ring):\n\n/sbin/agetty --wait-cr --init-string 'ATE0Q1&D2&C1S0=1\\015' 115200 ttyS1\n",
            "subsections": []
        },
        "SECURITY NOTICE": {
            "content": "If you use the --login-program and --login-options options, be aware that a malicious user\nmay try to enter lognames with embedded options, which then get passed to the used login\nprogram. Agetty does check for a leading \"-\" and makes sure the logname gets passed as one\nparameter (so embedded spaces will not create yet another parameter), but depending on how\nthe login binary parses the command line that might not be sufficient. Check that the used\nlogin program cannot be abused this way.\n\nSome programs use \"--\" to indicate that the rest of the command line should not be\ninterpreted as options. Use this feature if available by passing \"--\" before the username\ngets passed by \\u.\n",
            "subsections": []
        },
        "ISSUE FILES": {
            "content": "The default issue file is /etc/issue. If the file exists, then agetty also checks for\n/etc/issue.d directory. The directory is optional extension to the default issue file and\ncontent of the directory is printed after /etc/issue content. If the /etc/issue does not\nexist, then the directory is ignored. All files with .issue extension from the directory are\nprinted in version-sort order. The directory can be used to maintain 3rd-party messages\nindependently on the primary system /etc/issue file.\n\nSince version 2.35 additional locations for issue file and directory are supported. If the\ndefault /etc/issue does not exist, then agetty checks for /run/issue and /run/issue.d,\nthereafter for /usr/lib/issue and /usr/lib/issue.d. The directory /etc is expected for host\nspecific configuration, /run is expected for generated stuff and /usr/lib for static\ndistribution maintained configuration.\n\nThe default path maybe overridden by --issue-file option. In this case specified path has to\nbe file or directory and all the default issue file and directory locations are ignored.\n\nThe issue file feature can be completely disabled by --noissue option.\n\nIt is possible to review the current issue file by agetty --show-issue on the current\nterminal.\n\nThe issue files may contain certain escape codes to display the system name, date, time et\ncetera. All escape codes consist of a backslash (\\) immediately followed by one of the\ncharacters listed below.\n\n4 or 4{interface}\nInsert the IPv4 address of the specified network interface (for example: \\4{eth0}). If\nthe interface argument is not specified, then select the first fully configured (UP,\nnon-LOCALBACK, RUNNING) interface. If not any configured interface is found, fall back to\nthe IP address of the machine’s hostname.\n\n6 or 6{interface}\nThe same as \\4 but for IPv6.\n\nb\nInsert the baudrate of the current line.\n\nd\nInsert the current date.\n\ne or e{name}\nTranslate the human-readable name to an escape sequence and insert it (for example:\n\\e{red}Alert text.\\e{reset}). If the name argument is not specified, then insert \\033.\nThe currently supported names are: black, blink, blue, bold, brown, cyan, darkgray, gray,\ngreen, halfbright, lightblue, lightcyan, lightgray, lightgreen, lightmagenta, lightred,\nmagenta, red, reset, reverse, yellow and white. All unknown names are silently ignored.\n\ns\nInsert the system name (the name of the operating system). Same as 'uname -s'. See also\nthe \\S escape code.\n\nS or S{VARIABLE}\nInsert the VARIABLE data from /etc/os-release. If this file does not exist then fall back\nto /usr/lib/os-release. If the VARIABLE argument is not specified, then use PRETTYNAME\nfrom the file or the system name (see \\s). This escape code can be used to keep\n/etc/issue distribution and release independent. Note that \\S{ANSICOLOR} is converted to\nthe real terminal escape sequence.\n\nl\nInsert the name of the current tty line.\n\nm\nInsert the architecture identifier of the machine. Same as uname -m.\n\nn\nInsert the nodename of the machine, also known as the hostname. Same as uname -n.\n\no\nInsert the NIS domainname of the machine. Same as hostname -d.\n\nO\nInsert the DNS domainname of the machine.\n\nr\nInsert the release number of the OS. Same as uname -r.\n\nt\nInsert the current time.\n\nu\nInsert the number of current users logged in.\n\nU\nInsert the string \"1 user\" or \"<n> users\" where <n> is the number of current users logged\nin.\n\nv\nInsert the version of the OS, that is, the build-date and such.\n\nAn example. On my system, the following /etc/issue file:\n\nThis is \\n.\\o (\\s \\m \\r) \\t\n\ndisplays as:\n\nThis is thingol.orcan.dk (Linux i386 1.1.9) 18:29:30\n",
            "subsections": []
        },
        "FILES": {
            "content": "/var/run/utmp\nthe system status file.\n\n/etc/issue\nprinted before the login prompt.\n\n/etc/os-release /usr/lib/os-release\noperating system identification data.\n\n/dev/console\nproblem reports (if syslog(3) is not used).\n\n/etc/inittab\ninit(8) configuration file for SysV-style init daemon.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "The baud-rate detection feature (the --extract-baud option) requires that agetty be scheduled\nsoon enough after completion of a dial-in call (within 30 ms with modems that talk at 2400\nbaud). For robustness, always use the --extract-baud option in combination with a multiple\nbaud rate command-line argument, so that BREAK processing is enabled.\n\nThe text in the /etc/issue file (or other) and the login prompt are always output with 7-bit\ncharacters and space parity.\n\nThe baud-rate detection feature (the --extract-baud option) requires that the modem emits its\nstatus message after raising the DCD line.\n",
            "subsections": []
        },
        "DIAGNOSTICS": {
            "content": "Depending on how the program was configured, all diagnostics are written to the console\ndevice or reported via the syslog(3) facility. Error messages are produced if the port\nargument does not specify a terminal device; if there is no utmp entry for the current\nprocess (System V only); and so on.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Werner Fink <werner@suse.de>, Karel Zak <kzak@redhat.com>\n\nThe original agetty for serial terminals was written by W.Z. Venema <wietse@wzv.win.tue.nl>\nand ported to Linux by Peter Orbaek <poe@daimi.aau.dk>.\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "For bug reports, use the issue tracker at https://github.com/karelzak/util-linux/issues.\n",
            "subsections": []
        },
        "AVAILABILITY": {
            "content": "The agetty command is part of the util-linux package which can be downloaded from Linux\nKernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.\n\n\n\nutil-linux 2.37.2                            2021-06-02                                    AGETTY(8)",
            "subsections": []
        }
    },
    "summary": "agetty - alternative Linux getty",
    "flags": [
        {
            "flag": "-8",
            "long": "--8bits",
            "arg": null,
            "description": "Assume that the tty is 8-bit clean, hence disable parity detection."
        },
        {
            "flag": "-a",
            "long": "--autologin",
            "arg": null,
            "description": "Automatically log in the specified user without asking for a username or password. Using this option causes an -f username option and argument to be added to the /bin/login command line. See --login-options, which can be used to modify this option’s behavior. Note that --autologin may affect the way in which getty initializes the serial line, because on auto-login agetty does not read from the line and it has no opportunity optimize the line setting."
        },
        {
            "flag": "-c",
            "long": "--noreset",
            "arg": null,
            "description": "Do not reset terminal cflags (control modes). See termios(3) for more details."
        },
        {
            "flag": "-E",
            "long": "--remote",
            "arg": null,
            "description": "Typically the login(1) command is given a remote hostname when called by something such as telnetd(8). This option allows agetty to pass what it is using for a hostname to login(1) for use in utmp(5). See --host, login(1), and utmp(5). If the --host fakehost option is given, then an -h fakehost option and argument are added to the /bin/login command line. If the --nohostname option is given, then an -H option is added to the /bin/login command line. See --login-options."
        },
        {
            "flag": "-f",
            "long": "--issue-file",
            "arg": null,
            "description": "Specifies a \":\" delimited list of files and directories to be displayed instead of /etc/issue (or other). All specified files and directories are displayed, missing or empty files are silently ignored. If the specified path is a directory then display all files with .issue file extension in version-sort order from the directory. This allows custom messages to be displayed on different terminals. The --noissue option will override this option."
        },
        {
            "flag": "",
            "long": "--show-issue",
            "arg": null,
            "description": "Display the current issue file (or other) on the current terminal and exit. Use this option to review the current setting, it is not designed for any other purpose. Note that output may use some default or incomplete information as proper output depends on terminal and agetty command line."
        },
        {
            "flag": "-h",
            "long": "--flow-control",
            "arg": null,
            "description": "Enable hardware (RTS/CTS) flow control. It is left up to the application to disable software (XON/XOFF) flow protocol where appropriate."
        },
        {
            "flag": "-H",
            "long": "--host",
            "arg": null,
            "description": "Write the specified fakehost into the utmp file. Normally, no login host is given, since agetty is used for local hardwired connections and consoles. However, this option can be useful for identifying terminal concentrators and the like."
        },
        {
            "flag": "-i",
            "long": "--noissue",
            "arg": null,
            "description": "Do not display the contents of /etc/issue (or other) before writing the login prompt. Terminals or communications hardware may become confused when receiving lots of text at the wrong baud rate; dial-up scripts may fail if the login prompt is preceded by too much text."
        },
        {
            "flag": "-I",
            "long": "--init-string",
            "arg": null,
            "description": "Set an initial string to be sent to the tty or modem before sending anything else. This may be used to initialize a modem. Non-printable characters may be sent by writing their octal code preceded by a backslash (\\). For example, to send a linefeed character (ASCII 10, octal 012), write \\12."
        },
        {
            "flag": "-J",
            "long": "--noclear",
            "arg": null,
            "description": "Do not clear the screen before prompting for the login name. By default the screen is cleared."
        },
        {
            "flag": "-l",
            "long": "--login-program",
            "arg": null,
            "description": "Invoke the specified loginprogram instead of /bin/login. This allows the use of a non-standard login program. Such a program could, for example, ask for a dial-up password or use a different password file. See --login-options."
        },
        {
            "flag": "-L",
            "long": "--local-line",
            "arg": null,
            "description": "Control the CLOCAL line flag. The optional mode argument is 'auto', 'always' or 'never'. If the mode argument is omitted, then the default is 'always'. If the --local-line option is not given at all, then the default is 'auto'. always Forces the line to be a local line with no need for carrier detect. This can be useful when you have a locally attached terminal where the serial line does not set the carrier-detect signal. never Explicitly clears the CLOCAL flag from the line setting and the carrier-detect signal is expected on the line. auto The agetty default. Does not modify the CLOCAL setting and follows the setting enabled by the kernel."
        },
        {
            "flag": "-m",
            "long": "--extract-baud",
            "arg": null,
            "description": "Try to extract the baud rate from the CONNECT status message produced by Hayes(tm)-compatible modems. These status messages are of the form: \"<junk><speed><junk>\". agetty assumes that the modem emits its status message at the same speed as specified with (the first) baudrate value on the command line. Since the --extract-baud feature may fail on heavily-loaded systems, you still should enable BREAK processing by enumerating all expected baud rates on the command line."
        },
        {
            "flag": "",
            "long": "--list-speeds",
            "arg": null,
            "description": "Display supported baud rates. These are determined at compilation time."
        },
        {
            "flag": "-n",
            "long": "--skip-login",
            "arg": null,
            "description": "Do not prompt the user for a login name. This can be used in connection with the --login-program option to invoke a non-standard login process such as a BBS system. Note that with the --skip-login option, agetty gets no input from the user who logs in and therefore will not be able to figure out parity, character size, and newline processing of the connection. It defaults to space parity, 7 bit characters, and ASCII CR (13) end-of-line character. Beware that the program that agetty starts (usually /bin/login) is run as root."
        },
        {
            "flag": "-N",
            "long": "--nonewline",
            "arg": null,
            "description": "Do not print a newline before writing out /etc/issue."
        },
        {
            "flag": "-o",
            "long": "--login-options",
            "arg": null,
            "description": "Options and arguments that are passed to login(1). Where \\u is replaced by the login name. For example: --login-options '-h darkstar —— \\u' See --autologin, --login-program and --remote. Please read the SECURITY NOTICE below before using this option."
        },
        {
            "flag": "-p",
            "long": "--login-pause",
            "arg": null,
            "description": "Wait for any key before dropping to the login prompt. Can be combined with --autologin to save memory by lazily spawning shells."
        },
        {
            "flag": "-r",
            "long": "--chroot",
            "arg": null,
            "description": "Change root to the specified directory."
        },
        {
            "flag": "-R",
            "long": "--hangup",
            "arg": null,
            "description": "Call vhangup(2) to do a virtual hangup of the specified terminal."
        },
        {
            "flag": "-s",
            "long": "--keep-baud",
            "arg": null,
            "description": "Try to keep the existing baud rate. The baud rates from the command line are used when agetty receives a BREAK character. If another baud rates specified then the original baud rate is also saved to the end of the wanted baud rates list. This can be used to return to the original baud rate after unexpected BREAKs."
        },
        {
            "flag": "-t",
            "long": "--timeout",
            "arg": null,
            "description": "Terminate if no user name could be read within timeout seconds. Use of this option with hardwired terminal lines is not recommended."
        },
        {
            "flag": "-U",
            "long": "--detect-case",
            "arg": null,
            "description": "Turn on support for detecting an uppercase-only terminal. This setting will detect a login name containing only capitals as indicating an uppercase-only terminal and turn on some upper-to-lower case conversions. Note that this has no support for any Unicode characters."
        },
        {
            "flag": "-w",
            "long": "--wait-cr",
            "arg": null,
            "description": "Wait for the user or the modem to send a carriage-return or a linefeed character before sending the /etc/issue file (or others) and the login prompt. This is useful with the --init-string option."
        },
        {
            "flag": "",
            "long": "--nohints",
            "arg": null,
            "description": "Do not print hints about Num, Caps and Scroll Locks."
        },
        {
            "flag": "",
            "long": "--nohostname",
            "arg": null,
            "description": "By default the hostname will be printed. With this option enabled, no hostname at all will be shown."
        },
        {
            "flag": "",
            "long": "--long-hostname",
            "arg": null,
            "description": "By default the hostname is only printed until the first dot. With this option enabled, the fully qualified hostname by gethostname(3P) or (if not found) by getaddrinfo(3) is shown. --erase-chars string This option specifies additional characters that should be interpreted as a backspace (\"ignore the previous character\") when the user types the login name. The default additional 'erase' has been '#', but since util-linux 2.23 no additional erase characters are enabled by default. --kill-chars string This option specifies additional characters that should be interpreted as a kill (\"ignore all previous characters\") when the user types the login name. The default additional 'kill' has been '@', but since util-linux 2.23 no additional kill characters are enabled by default. --chdir directory Change directory before the login. --delay number Sleep seconds before open tty. --nice number Run login with this priority."
        },
        {
            "flag": "",
            "long": "--reload",
            "arg": null,
            "description": "Ask all running agetty instances to reload and update their displayed prompts, if the user has not yet commenced logging in. After doing so the command will exit. This feature might be unsupported on systems without Linux inotify(7)."
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Display version information and exit."
        },
        {
            "flag": "",
            "long": "--help",
            "arg": null,
            "description": "Display help text and exit."
        }
    ],
    "examples": [
        "This section shows examples for the process field of an entry in the /etc/inittab file.",
        "You’ll have to prepend appropriate values for the other fields. See inittab(5) for more",
        "details.",
        "For a hardwired line or a console tty:",
        "/sbin/agetty 9600 ttyS1",
        "For a directly connected terminal without proper carrier-detect wiring (try this if your",
        "terminal just sleeps instead of giving you a password: prompt):",
        "/sbin/agetty --local-line 9600 ttyS1 vt100",
        "For an old-style dial-in line with a 9600/2400/1200 baud modem:",
        "/sbin/agetty --extract-baud --timeout 60 ttyS1 9600,2400,1200",
        "For a Hayes modem with a fixed 115200 bps interface to the machine (the example init string",
        "turns off modem echo and result codes, makes modem/computer DCD track modem/modem DCD, makes",
        "a DTR drop cause a disconnection, and turns on auto-answer after 1 ring):",
        "/sbin/agetty --wait-cr --init-string 'ATE0Q1&D2&C1S0=1\\015' 115200 ttyS1"
    ],
    "see_also": []
}