snippetbashTip
fgconsole — Print the number of the foreground virtual terminal. More information: <https://manned.org/fgconsole
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:fgconsolePrint the next unallocated virtual terminal:
fgconsole {{[-n|--next-available]}}Code Snippets
Print current terminal number or `serial` if the terminal is serial
fgconsolePrint the next unallocated virtual terminal
fgconsole {{[-n|--next-available]}}Context
tldr-pages: linux/fgconsole
Revisions (0)
No revisions yet.