我的linux裝在虛擬機上,所以,如果已經啟動了X-Window,但是不可以使用Ctrl+Alt+shift+F1(F2、F3、F4、F5、F6均可以)進入字符狀態。但是我想進入文字界面怎麼辦呢?下面我的解決辦法:
用命令進入到etc文件,然後用vim打開inittab,我的顯示內容如下:
- #
- # inittab This file describes how the INIT process should set up
- # the system in a certain run-level.
- #
- # Author: Miquel van Smoorenburg, <[email protected]>
- # Modified for RHS Linux by Marc Ewing and Donnie Barnes
- #
-
- # Default runlevel. The runlevels used by RHS are:
- # 0 - halt (Do NOT set initdefault to this)
- # 1 - Single user mode
- # 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
- # 3 - Full multiuser mode
- # 4 - unused
- # 5 - X11
- # 6 - reboot (Do NOT set initdefault to this)
- #
- id:5:initdefault:
-
- # System initialization.
- si::sysinit:/etc/rc.d/rc.sysinit
-
- l0:0:wait:/etc/rc.d/rc 0
- "/etc/inittab" 53L, 1666C
把id:5 改為id:3就可以了