AGETTY(8) agetty - ,,getty" agetty [] [_...] [] agetty , ,,/bin/login". init(8). agetty - : o , , . 7- , , , 8- . : -U (); DEL (); ( ). --erase-chars --kill-chars. o Hayes(tm)- . o ( ). o /etc/issue . o /etc/issue /etc/issue.d. o . o /bin/login. o . o . /etc/gettydefs (System V) /etc/gettytab (SunOS 4) . /dev. ,,-" , agetty . System- V, ,,-" ,,--". _,... . agetty , . , (-@) . . ( --keep-baud) ,,9600". . init(1) , . ,,vt100", ,,linux" , ,,hurd" GNU Hurd . -8, --8bits 8- , . -a, --autologin - . -f - /bin/login . --login-options, . --autologin getty , agetty . -c, --noreset ,,cflags" ( ). termios(3) . -E, --remote login(1) telnetd(8). agetty login(1) utmp(5). --host, login(1), utmp(5). --host , -h /bin/login. --nohostname, -H /bin/login. --login-options. -f, --issue-file ,,:" /etc/issue ( ). , . , .issue . . --noissue . --show-issue ( ) . , . agetty . -h, --flow-control (RTS/CTS). (XON/XOFF) . -H, --host - ,,utmp" . , , agetty . , . -i, --noissue /etc/issue ( ) . ; . -I, --init-string - . . (\). , ( 10, 012), \12. -J, --noclear . . -l, --login-program - _ /bin/login. . , , . --login-options. -L, --local-line[=mode] ,,CLOCAL". auto, always never. , always. --local-line , auto. always . . never ,,CLOCAL" . auto agetty-. ,,CLOCAL" . -m, --extract-baud Hayes(tm)- . : ,,<><><>". agetty () _ . --extract-baud , . --list-speeds . . -n, --skip-login . --login-program BBS . --skip-login, agetty , . , 7- CR (13) . agetty ( /bin/login) . -N, --nonewline /etc/issue. -o, --login-options _ login-(1). ,,\u" . : --login-options '-h darkstar -- \u' --autologin, --login-program --remote. . -p, --login-pause . --autologin . -r, --chroot . -R, --hangup vhangup(2) . -s, --keep-baud . agetty . , . . -t, --timeout - - . . -U, --detect-case . . . -w, --wait-cr /etc/issue ( ) . --init-string. --nohints , . --nohostname . , . ,,LOGIN_PLAIN_PROMPT" /etc/login.defs ( ). --long-hostname . , gethostname(3P) ( ) getaddrinfo(3) . --erase-chars (,, ") . ,," ,,#", ,,util-linux"- 2.23 . --kill-chars (,, ") . ,," ,,@", ,,util-linux"- 2.23 . --chdir . --delay . --nice . --reload agetty , . . inotify(7). -h, --help . -V, --version Display version and exit. agetty /etc/login.defs ( login.defs(5)). ( ,,shadow-utils"). agetty: LOGIN_PLAIN_PROMPT () agetty- ,,:". --nohostname . no (). /etc/inittab. . inittab(5) . : /sbin/agetty 9600 ttyS1 ( ,,:"): /sbin/agetty --local-line 9600 ttyS1 vt100 9600/2400/1200 : /sbin/agetty --extract-baud --timeout 60 ttyS1 9600,2400,1200 ,,Hayes" 115200 / ( , / DCD / DCD, DTR - 1 ): /sbin/agetty --wait-cr --init-string 'ATE0Q1&D2&C1S0=1\015' 115200 ttyS1 --login-program --login-options, , . agetty ,,-" ( ), , . . ,,--" . ,,--" ,,\u". /etc/issue. , agetty /etc/issue.d. /etc/issue . /etc/issue , . .issue . /etc/issue. Since version 2.35, additional locations for the issue file and directory are supported. agetty checks for the files /run/issue and /run/issue.d, and then for /usr/lib/issue and /usr/lib/issue.d. The directory /etc is expected for host-specific configuration, /run is expected for generated content, and /usr/lib is used for static configuration maintained by the distribution. Note that in versions 2.35 to 2.40, the additional locations were only read if the default /etc/issue file did not exist. However, since version 2.41, the additional locations are always read, regardless of the existence of the /etc/issue file. This change allows for the generation of issue files by default. The default paths maybe completely overridden by --issue-file option. In this case specified path has to be file or directory and all the default issue file and directory locations are ignored. --noissue. agetty --show-issue . o , , . o (\) . 4 4{interface} 4 ( : \4{eth0}). , (UP, non-LOCALBACK, RUNNING) . , . 6 6{interface} \4 IPv6. b . d . e e{name} ( : \e{red} .\e{reset}). , \033. : , , , , , , , , , , , , , , , , , , , , . . s ( ). ,,uname -s". o ,,\S". S S{VARIABLE} /etc/os-release. /usr/lib/os-release. , ,,PRETTY_NAME" ( ,,\s"). o /etc/issue . ,,\S{ANSI_COLOR}" . l . m . uname -m. n , . uname -n. o NIS . hostname -d. O DNS . r . uname -r. t . u . U ,,1 user" ,, users" . v , , . . , /etc/issue : ,,\n.\o (\s \m \r) \t" : ,,thingol.orcan.dk (Linux i386 1.1.9) 18:29:30" /var/run/utmp . /etc/issue . /etc/os-release /usr/lib/os-release . /dev/console ( syslog(3) ). /etc/inittab init(8) SysV-. agetty systemd ( ,,https://systemd.io/CREDENTIALS/"). agetty systemd-: agetty.autologin () , agetty , --autologin. ( --extract-baud) agetty ( 30 ms 2400 ). , --extract-baud , . /etc/issue ( ) 7- . ( --extract-baud) . , syslog(3) . ; ,,utmp" ( System V); . Werner Fink , Karel Zak agetty W.Z. Venema Peter Orbaek . For bug reports, use the issue tracker . agetty ,,util-linux" . util-linux 2.41 2025-03-29 AGETTY(8)