Files
cheatsheet-tldr/tldr/linux/fgconsole
2025-08-27 00:19:48 +00:00

18 lines
384 B
Plaintext

---
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]}}`