NAME
chvt - change foreground virtual terminal
SYNOPSIS
DESCRIPTION
The command chvt N makes /dev/ttyN the foreground terminal. (The corresponding 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.
-------------------------------------------------
NAME(名称)
chvt - 修改虚拟终端的前台环境
SYNOPSIS(总 览)
chvtN
DESCRIPTION(描 述)
chvt N 命令用来生成 /dev/ttyN 的前台终端.如果它本来不存在,即创建相应的屏幕.为了删除掉 不用的VT(虚拟终端),可使用 deallocvt (1). 键映射操作 `Console_N' (通常绑定为键组合 (Ctrl-)LeftAlt-FN, N 在1-12的范围里取值, 而 RightAlt-FN-12 中的 N 则在13-24的范围里取值)也允许切换到其它的VT,不过实际的切换 只能在它已经分配的前提下进行.这防止了分配给新的VT一个错位 的键值.
---------------------------------------------------------
chvt
chvt N
Switch to virtual terminal N (that is, switch to /dev/ttyN ). If you have not created /dev/ttyN , it will be created when you use this command. There are keyboard shortcuts for this functionality as well. From a graphical desktop, you can press Ctrl-Alt-F1 through F12 to switch to different virtual terminals. In text mode, you can skip the Ctrl key and just use Alt-F1 through F12. To switch back to graphical mode, use Alt-F7.
---------------------------------------
说明:
我们在正常情况下切换虚拟终端只要用组合键:Ctrl+Alt+Fn ,这个n就是你要切换的虚拟终端的号,然后可以再按Ctrl+Alt+F7回到图形界面。
但是在vmware中这个办法经常不奏效,原因大家应该知道的,就是在vmware下默认按住 Ctrl+Alt组合键,是用来在虚拟机和物理机之间互换的。
但是有了chvt这个命令,就可以这样办拉。呵呵
比如你现在在图形界面,想切换到tty1,也就是一号终端,只要执行
chvt 1 即可
如果你想回到图形己面,只要执行
chvt 7 即可