[email protected] ~]# runlevel// View Run Level
N 5
View configuration Files
[Email protected] ~]# Cat/etc/inittab
# Inittab is a used by upstart for the default runlevel.
#
# ADDING Other CONFIGURATION here would have NO EFFECT on YOUR SYSTEM.
#
# System initialization is started by/etc/init/rcs.conf
#
# individual runlevels is started by/etc/init/rc.conf
#
# Ctrl-alt-delete is handled by/etc/init/control-alt-delete.conf
#
# Terminal Gettys is handled by/etc/init/tty.conf and/etc/init/serial.conf,
# with configuration In/etc/sysconfig/init.
#
# For information on what to write upstart event handlers, or how
# Upstart works, see Init (5), init (8), and Initctl (8).
#
# Default RunLevel. The runlevels used is:
# 0-halt (do not set Initdefault to this)
# 1-single User mode
# 2-multiuser, without NFS (the same as 3, if you don't have networking)
# 3-full Multiuser mode
# 4-unused
# 5-x11
# 6-reboot (do not set Initdefault to this)
#
Id:5:initdefault:
the configuration files are as follows 0~6 A level, Id:5:initdefault: default startup Level 5
0. turn off the machine
1. Single User
2. Multi-user without NFS
3. Multi-user
4.unused System Retention
5.x11 Graphics Mode
6. Restart
The restart commands are: Init 6 , reboot , Shutdown-r Now
The shutdown commands are: Init 0 , Shutdown-h Now
[email protected] ~]# yum grouplist// to view installed files
[email protected] ~]#// into English display
[email protected] ~]#. UTF-8// Chinese display
[email protected] ~]# yum groupinstall-y "Desktop"// Install desktop graphical
[[email protected] ~]# init 5// switch to the graphical interface
[email protected] ~]# startx// switch to the graphical interface
This article is from the Linux Learning Notes blog, so be sure to keep this source http://9656134.blog.51cto.com/9646134/1676156
Linux Run Level