init 命令用于切换到指定的运行级别, 用法如下:
- [root@localhost ~]# init 0 // 关机
- [root@localhost ~]# init 1 // 切换到单用户模式 / 救援模式
- [root@localhost ~]# init 2 // 切换到无网络连接的多用户命令行模式
- [root@localhost ~]# init 3 // 切换到有网络连接的多用户命令行模式
- [root@localhost ~]# init 4 // 不可用
- [root@localhost ~]# init 5 // 切换到带图形界面的多用户模式
- [root@localhost ~]# init 6 // 重启
来源: http://www.bubuko.com/infodetail-2990198.html