Linux装在虚拟机上,如何进入文字界面

我的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, <miquels@drinkel.nl.mugnet.org>   #               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就可以了

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/22022.html