之前用过VirtualBox虚拟机,但是用VB有个很麻烦的事情,不能发送Ctrl+Alt+Fn键切换虚拟终端。因为这个中断会被Host机捕捉到,而有时候又很需要字符终端,总不能每次都切换运行级别吧?
后来看红帽的教材的时候看到一个命令,chvt。很好地解决了这个问题,命令很简单,
# chvt num
num是要切换到的终端。例如我想切换到第二个字符终端,只需要输入
# chvt 2
就可以了。
Here is the man page:
NAME
chvt - change foreground virtual terminal
SYNOPSIS
chvt N
DESCRIPTION
The command chvt N makes /dev/ttyN the foreground terminal. (The cor-
responding screen is created if it did not exist yet. To get rid of
unused VTs, use deallocvt(1).) The key combination (Ctrl-)LeftAlt-FN
(with N in the range 1-12) usually has a similar effect.
阅读(1327) | 评论(0) | 转发(0) |