SHOWCONSOLE(8)
π SHOWCONSOLE(8) β the SUSE boot concept, bestie edition β¨
Okay so this is showconsole(8), straight out of the SUSE boot concept, and honestly? It's lowkey a lifesaver. Let's get into it. π«Ά
πΈ NAME πΈ
Showconsoleβ literally just figures out the real tty of stdin, no cap.Setconsoleβ redirects system console output to a tty. Iconic behaviour.
β SYNOPSIS β
showconsole [-n]
setconsole [-r|/dev/tty<xy>]
That's it. That's the whole vibe check. π¦
π DESCRIPTION π
So showconsole does the thing where it determines the real character device of the current system console. Why do you care? Because you can run it on /dev/console as the current character device and get the actual real character device back. It's giving detective energy. πβ¨
Then there's setconsole β give it a terminal device as an argument and it redirects the output that would have gone to /dev/console or /dev/tty0 over to the terminal you picked. Slay.
And if you pass no argument at all, or use the option? setconsole undoes any redirection. Back to default, no drama. π
β¨ OPTIONS β¨
-nβ returns the major and minor device numbers instead of the device file name. Super useful because you can ask the kernel for the major and minor device numbers of a device file that doesn't even exist in/devyet. Not me using this to peek at devices that aren't born yet ππ
π BUGS π
Real talk, there are some things you gotta know:
showconsoleneeds a mounted/procfile system, okay? Non-negotiable.
It also tries to set the controlling tty to stdin if no controlling tty is found. And after reading /proc, it restores the status of the controlling tty β specifically to avoid problems with getty processes. Considerate queen behaviour honestly. π
π FILES π
/proc/<pid of showconsole>/statβ the stat file of theshowconsoleprocess. Like its little birth certificate./dev/consoleβ the system console. The main character, fr fr. π
π¦ SEE ALSO π¦
blogd(8), console(4), tty(4), proc(5). Go read those next, bestie, iykyk. π
π COPYRIGHT π
2000 Werner Fink, 2000 SuSE GmbH Nuernberg, Germany.
π AUTHOR π
Werner Fink <werner@suse.de> β thank you for your service, king π«‘π
Okay that's the whole page! And before I go β this lil masterpiece comes to you from the 3rd Berkeley Distribution, dated Jan 14, 2016, and it's the SHOWCONSOLE(8) page. Obsessed with her, honestly. Periodt. πβ¨πΈ
π¦ where this page comes from
- opensuse-leap 16.0: blog 2.45-160000.1.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: blog 2.45-160000.1.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: blog 2.45-160000.1.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: blog 2.45-160000.1.1 Β· GPL-2.0-or-later
- Copyright 2000 Werner Fink, 2000 SuSE GmbH Nuernberg, Germany
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms