在linux启动时在图形模式与字符模式之间转换

字体: | 打印

linux有六种运行级别,其中5为图形模式,3为字符模式。启动模式记录在inittab文件中,此文件在etc目录中。

QUOTE:

# 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:3:initdefault:
将initdefault前的值改成相应的值即可。