1FGCONSOLE(1) Linux User's Manual FGCONSOLE(1)
2
3
4
6 fgconsole - print the number of the active VT.
7
8
10 fgconsole [--help|--version|--next-available]
11
13 If the active Virtual Terminal is /dev/ttyN, then prints N on standard
14 output.
15
16 If the console is a serial console, then "serial" is printed instead.
17
18 --next-available
19 Will show the next unallocated virtual terminal. Normally 6 vir‐
20 tual terminals are allocated, with number 7 used for X; this
21 will return "8" in this case.
22
23
25 Under devfs, the consoles are in /dev/vc/N. devfsd may maintain sym‐
26 links for compatibility.
27
29 chvt(1).
30
31
32
33
34 14 Feburary 2002 FGCONSOLE(1)