Linux Blog

Command of the day: chvt

Filed under: Linux Software — at 1:07 pm on Monday, July 14, 2008

Changing virtual terminals is almost essential for the Linux system administrator. If you don’t know what I mean by this then try pressing CTRL+ALT+F5 once you are there press CTRL+RIGHT ARROW until you get back to your display (should be two or so times depending on your distribution)

Until a few minutes ago I didn’t know that this could be done by the command line. chvt is a nifty command to change virtual terminal. Basically all you have to do is type “chvt 2” to change to tty2. I found it while I was looking for a solution to open up a view of other active terminals.

This could be handy if your on a laptop or your function keys are missing / broken.