fgconsole
fgconsole
fgconsole
Print the number of the current virtual console. For example, if you are using /dev/tty1, the command would return 1.
fgconsole
Print the number of the current virtual console. For example, if you are using /dev/tty1, the command would return 1.