登陆方式:vim /etc/inittab
 3.多用户模式
 5.窗口模式
用户切换:Ctrl+Alt+F1~F6
     Ctrl+Alt+F7返回到桌面环境
env:查看所有变量名
通过#echo $varname 形式查看值
自定义变量:export rsc=rscpass
 输出:echo $rsc
 结果:rscpass
修改系统的环境变量:vim /etc/profile

 

通过/etc/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:3:initdefault:  //修改此处
================================

临时更改系统运行级别:telinit 5   
重启后恢复原来的运行级别

runlevel:查看当前在什么系统级别下运行

[root@localhost /]# runlevel
5 3   //系统上一次运行级别为5,当前运行级别为3

在CLI 界面下我们要启动图形界面可以输入startx,我们如果要修改成一直图形界面启动Linux,
可以输入vi /etc/inittab,键入i 编辑把id:3 改成id:5,保存退出。