MINGETTY(8)
π MINGETTY(8) β ok so listen, bestie
It's mingetty, it's section 8 of the Linux Programmer's Manual, and it's about to be your new fave little console greeter. No cap. π
β¨ NAME β¨
mingetty β the minimal getty for consoles. That's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
mingetty [--noclear] [--nonewline] [--noissue] [--nohangup]
[--nohostname] [--long-hostname] [--loginprog=/bin/login] [--nice=10]
[--delay=5] [--chdir=/home] [--chroot=/chroot] [--autologin username]
[--loginpause] tty
π¦ DESCRIPTION π¦
So mingetty is a minimal getty, and it lives on your virtual consoles, periodt. It is NOT like agetty(8) though β bestie, do not try to put this on a serial line, it is literally not built for that. If serial lines are your thing, the man page itself says "I recommend using mgetty(8) for this purpose." Iconic, honestly. Go use mgetty(8). π«Ά
π OPTIONS π
--noclearβ don't clear the screen before it asks you for the login name. (Normally the screen does get cleared, so this is your "leave my scrollback alone" button.) β¨--nonewlineβ don't print a newline before writing out/etc/issue.--noissueβ just... don't output/etc/issueat all. Skip it, it's giving nothing today. π--nohangupβ don't callvhangup()to disable writing to this tty by other applications.--nohostnameβ don't print the hostname before the login prompt.--long-hostnameβ by default the hostname is only printed until the first dot. With this one enabled, you get the full text fromgethostname(). Main character hostname energy. π--loginprog /bin/loginβ change the login app. (Yes,/bin/loginis the default, look at it up there in the synopsis.)--nice 10β change the priority by callingnice().--delay 5β sleep this many seconds after startup ofmingetty.--chdir /homeβ change into this directory before calling the login prog.--chroot /chrootβ callchroot()with this directory name.--autologin usernameβ logs the specified user in automatically, no login name, no password, no asking. Check the-foption from/bin/loginfor this.--loginpauseβ wait for any key before dropping to the login prompt. You can combine it with--autologinto save memory by lazily spawning shells. Lazy but make it efficient. π
π ISSUE ESCAPES π
mingetty recognizes these escape sequences, and you can embed them in your /etc/issue file:
\dβ insert current day (localtime),\lβ insert line on whichmingettyis running,\mβ inserts machine architecture (uname -m),\nβ inserts machine's network node hostname (uname -n),\oβ inserts domain name,\rβ inserts operating system release (uname -r),\tβ insert current time (localtime),\sβ inserts operating system name,\uresp.\Uβ the current number of users which are currently logged in.\Uinserts "n users", where as\uonly inserts "n". (Yes,\Uis the chatty one. π¬)\vβ inserts operating system version (uname -v).
π EXAMPLE π
This string right here:
Linux eos i386 #1 Tue Mar 19 21:54:09 MET 1996
was produced by putting "\s \n \m \v" into /etc/issue. Ate, no crumbs. π₯
π FILES π
/etc/issue/var/run/utmp
β SEE ALSO β
π AUTHOR π
Copyright Β© 1996 Florian La Roche <laroche@redhat.com>. Man-page written by David Frey <David.Frey@eos.lugs.ch> and Florian La Roche.
And that's the whole page, bestie! π This little cutie came to you as Debian-Local, dated 6 Apr 1996, and honestly? It's been serving console login prompts ever since. Slay. π β¨
π¦ where this page comes from
- alpine 3.24: mingetty-doc 1.08-r7 Β· GPL-2.0-or-later
- debian bookworm: mingetty 1.08-4 Β· GPL-2.0-or-later
- debian trixie: mingetty 1.08-7 Β· GPL-2.0-or-later
- fedora 43: mingetty 1.08-40.fc43 Β· GPL-2.0-or-later
- fedora 44: mingetty 1.08-41.fc44 Β· GPL-2.0-or-later
- nixos 26.05: mingetty 1.08
- nixpkgs unstable: mingetty 1.08
- ubuntu jammy: mingetty 1.08-4 Β· GPL-2.0-or-later
- ubuntu noble: mingetty 1.08-5 Β· GPL-2.0-or-later
- ubuntu questing: mingetty 1.08-7
- ubuntu resolute: mingetty 1.08-7build1 Β· GPL-2.0-or-later
- ubuntu stonking: mingetty 1.08-7build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms