Change to foreground virtual terminal on Linux

Once more I revisit a short but annoying subject in Linux. As we all know, while inside the X environment it is possible to make the transition to the text or framebuffer based terminal (/dev/ttyN devices) using the keyboard binding CTRL ALT FN (N referring to the number of your function key).

I have recently come across the situation where my keyword binding just disappeared. So I could not set the foreground terminal as /dev/ttyN. Luckily I realised that the command chvt N lets you do exactly that where N refers to the actual /dev/ttyN device. For example by typing chvt 1 I can use my text based console again (I do not use any framebuffer devices).

To exit the particular /dev/tty device one only needs to use the corresponding deallocvt N command (or just use the ALT F7 keyword binding, if that is applicable to the specific linux distribution).

Leave a Reply

Your email address will not be published. Required fields are marked *