---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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]}}`
