Ubuntu 16.04 设置开机命令行模式
- 执行下面命令即可在开机时直接进入命令行模式:
$ sudo systemctl set-default multi-user.target
- 执行如下命令启动到桌面:
$ sudo systemctl start lightdm
- 要恢复默认启动到桌面,
$ systemctl set-default graphical.target
$ sudo systemctl set-default multi-user.target
$ sudo systemctl start lightdm
$ systemctl set-default graphical.target