NAME | SYNOPSIS | DESCRIPTION | OPTIONS | NOTES | AUTHORS | SEE ALSO | COLOPHON |
|
|
FGCONSOLE(1) General Commands Manual FGCONSOLE(1)
fgconsole - print the number of the active VT.
fgconsole [options]
If the active Virtual Terminal is /dev/ttyN, then prints N on standard output. If the console is a serial console, then "serial" is printed instead.
-n, --next-available Will show the next unallocated virtual terminal. Normally 6 virtual terminals are allocated, with number 7 used for X; this will return "8" in this case. -C, --console=DEV the console device to be used. -V, --version print version number. -h, --help print this usage message.
Under devfs, the consoles are in /dev/vc/N. devfsd may maintain symlinks for compatibility.
Andries Brouwer <aeb@cwi.nl> Manpage by Alastair McKinstry <mckinstry@computer.org>
chvt(1), deallocvt(1), openvt(1)
This page is part of the kbd (Linux keyboard tools) project.
Information about the project can be found at
⟨http://www.kbd-project.org/⟩. If you have a bug report for this
manual page, send it to kbd@lists.altlinux.org. This page was
obtained from the project's upstream Git repository
⟨https://github.com/legionus/kbd.git⟩ on 2025-02-02. (At that
time, the date of the most recent commit that was found in the
repository was 2025-01-30.) If you discover any rendering
problems in this HTML version of the page, or you believe there is
a better or more up-to-date source for the page, or you have
corrections or improvements to the information in this COLOPHON
(which is not part of the original manual page), send a mail to
man-pages@man7.org
kbd 24 October 2024 FGCONSOLE(1)