FGCONSOLE(1)
โจ 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 return8in 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 ๐
๐ฆ where this page comes from
- alpine 3.22: kbd-doc 2.7.1-r1 ยท GPL-2.0-or-later
- alpine 3.23: kbd-doc 2.8.0-r0 ยท GPL-2.0-or-later
- alpine 3.24: kbd-doc 2.8.0-r0 ยท GPL-2.0-or-later
- arch rolling: kbd 2.10.0-1 ยท GPL-2.0-or-later
- debian trixie: kbd 2.7.1-2 ยท GPL-2.0-or-later
- fedora 43: kbd 2.8.0-3.fc43 ยท GPL-2.0-or-later
- fedora 43: kbd 2.8.0-4.fc43 ยท GPL-2.0-or-later
- fedora 44: kbd 2.9.0-3.fc44 ยท GPL-2.0-or-later
- fedora 44: kbd 2.9.0-4.fc44 ยท GPL-2.0-or-later
- nixos 26.05: kbd 2.9.0
- nixos 26.05: kbd-vlock 2.9.0
- nixpkgs unstable: kbd 2.9.0
- nixpkgs unstable: kbd-vlock 2.9.0
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- ubuntu questing: kbd 2.7.1-2ubuntu1 ยท GPL-2.0-or-later
- ubuntu resolute: kbd 2.7.1-2ubuntu2 ยท GPL-2.0-or-later
- ubuntu stonking: kbd 2.9.0-1ubuntu1 ยท GPL-2.0-or-later
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms