FGCONSOLE(1)

๐Ÿ“ฆ
version 2.10.0 ยท 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

โœจ FGCONSOLE(1) ๐Ÿ’– General Commands Manual โœจ

๐ŸŽ€ NAME

okay so fgconsole is the tool that tells you the number of the active VT ๐Ÿ’… โ€” it prints it out, nothing fancy, just the vibe you need ๐Ÿงš

๐ŸŒธ SYNOPSIS

fgconsole [options]

๐Ÿฆ‹ DESCRIPTION

okay so if the active Virtual Terminal is /dev/ttyN, then it prints N on standard output ๐Ÿ”ฅ

if the console is a serial console, then serial gets printed instead ๐Ÿ™ˆ

โœจ OPTIONS โœจ

  • -n, --next-available โ€” bestie this one shows the next unallocated virtual terminal ๐Ÿ’œ normally 6 virtual terminals are allocated, with number 7 used for X, so this will return 8 in this case ๐Ÿซถ
  • -C, --console=DEV โ€” the console device to be used ๐ŸŒˆ
  • -V, --version โ€” prints the version number ๐Ÿ’…
  • -h, --help โ€” prints this usage message ๐Ÿ“

๐Ÿงš NOTES

ngl this part is so iconic ๐Ÿ˜ญ under devfs, the consoles are in /dev/vc/N ๐ŸŽ€ and devfsd may maintain symlinks for compatibility ๐Ÿฆ‹

๐Ÿ‘‘ AUTHORS

Andries Brouwer <aeb@cwi.nl> ๐Ÿ’–

Manpage by Alastair McKinstry <mckinstry@computer.org> โœจ

๐Ÿ’… SEE ALSO

chvt(1), deallocvt(1), openvt(1) ๐ŸŒˆ


okay bestie that's the whole tea โ˜•๐Ÿ’œ this page came from the kbd package, last updated 24 October 2024, and it's all about FGCONSOLE(1) ๐Ÿซถโœจ slay forever ๐Ÿ’–