切换系统常用的运行级别
指令 | 详情 |
---|---|
#systemctl get-deffault | 获取当前的运行级别 |
#systemctl get-deffault multi-user.target | 将默认运行级别设置为命令模式(需重新启动系统) |
#systemctl get-deffault graphical.target | 将默认运行级别设置为图形模式(需重新启动系统) |
#systemctl isolate multi-user.target | 不重启系统的情况下,将运行级别切换为命令模式 |
#systemctl isolate graphical.target | 不重启系统的情况下,将运行级别切换为图形模式 |
链接: 内容摘自