Linux init 命令

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    //重启

    

猜你喜欢

转载自www.cnblogs.com/pzk7788/p/10545893.html
今日推荐