HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

fgconsole — Print the number of the foreground virtual terminal. More information: <https://manned.org/fgconsole

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandforegroundcliprintfgconsolenumber
linux

Problem

How to use the fgconsole command: Print the number of the foreground virtual terminal. More information: <https://manned.org/fgconsole>.

Solution

fgconsole — Print the number of the foreground virtual terminal. More information: <https://manned.org/fgconsole>.

Print current terminal number or serial if the terminal is serial:
fgconsole


Print the next unallocated virtual terminal:
fgconsole {{[-n|--next-available]}}

Code Snippets

Print current terminal number or `serial` if the terminal is serial

fgconsole

Print the next unallocated virtual terminal

fgconsole {{[-n|--next-available]}}

Context

tldr-pages: linux/fgconsole

Revisions (0)

No revisions yet.