Get Active Linux Virtual Console
From Leo's Notes
This page was last edited on 28 September 2015, at 21:00.
To get the active virtual terminal in use under Linux, use the fgconsole command, or run
cat /sys/class/tty/tty0/active