commands.sh

fgconsole

linux

Print the number of the foreground virtual terminal.

More info →

Options (1)

-n, --next-availableboolean

Print the next unallocated virtual terminal

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

Examples (2)

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

Print the next unallocated virtual terminal

fgconsole [-n|--next-available]
made by @shridhargupta | data from tldr-pages