小智 29
是的,您可以使用该chvt命令。这需要sudo权限才能运行。
CHVT(1)
NAME
chvt - change foreground virtual terminal
SYNOPSIS
chvt N
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 )
The key combination (Ctrl-)LeftAlt-FN (with N in the range 1-12) usually has a similar effect.
Run Code Online (Sandbox Code Playgroud)
您可以通过fgconsole命令找到您当前所在的虚拟终端。这也需要 sudo 权限才能运行。
| 归档时间: |
|
| 查看次数: |
38293 次 |
| 最近记录: |