# fgconsole > Print the number of the foreground virtual terminal. > More information: . - Print current terminal number or `serial` if the terminal is serial: `fgconsole` - Print the next unallocated virtual terminal: `fgconsole {{[-n|--next-available]}}`