Get Active Linux Virtual Console

From Leo's Notes
Revision as of 21:00, 28 September 2015 by Leo (talk | contribs) (Created page with "To get the active virtual terminal in use under Linux, use the {{code|fgconsole}} command, or run {{Highlight|lang=bash|code= cat /sys/class/tty/tty0/active }} Category:Li...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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