FGCONSOLE(1)                 Linux User's Manual                FGCONSOLE(1)

NAME         top

       fgconsole - print the number of the active VT.

SYNOPSIS         top

       fgconsole [ -h --help | -V --version | -n --next-available ]

DESCRIPTION         top

       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.

       -h --help
              Prints short usage message and exits.

       -V --version
              Prints version number and exits.

              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.

NOTES         top

       Under devfs, the consoles are in /dev/vc/N.  devfsd may maintain
       symlinks for compatibility.

SEE ALSO         top


COLOPHON         top

       This page is part of the kbd (Linux keyboard tools) project.
       Information about the project can be found at 
       ⟨⟩.  If you have a bug report for this man‐
       ual page, send it to  This page was obtained
       from the project's upstream Git repository 
       ⟨git://⟩ on
       2017-09-15.  If you discover any rendering problems in this HTML ver‐
       sion 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 man‐
       ual page), send a mail to

                              14 Feburary 2002                  FGCONSOLE(1)