Leif160519的blog Leif160519的blog

——————

目录
Ubuntu桌面版关闭GUI环境
/  

Ubuntu桌面版关闭GUI环境

一、持久关闭

执行以下命令,持久关闭Ubuntu桌面版的GUI环境(通过Ctrl+Alt+F1-F6快捷键进入命令行界面):

sudo systemctl set-default multi-user.target

执行以下命令,持久开启Ubuntu桌面版的GUI环境(通过Ctrl+Alt+F7快捷键进入GUI界面):

sudo systemctl set-default graphical.target

二、临时关闭

执行以下命令,临时关闭Ubuntu桌面版的GUI环境:

sudo service lightdm stop

执行以下命令,临时开启Ubuntu桌面版的GUI环境:

sudo service lightdm start

“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill

标  题Ubuntu桌面版关闭GUI环境
作  者Leif160519
出  处https://github.icu/articles/2019/09/16/1568624364174.html
关于博主:坐标南京,运维工程师,如有问题探讨可以直接下方留言。
声援博主:如果您觉得文章对您有帮助,可以评论、订阅、收藏。您的鼓励是博主的最大动力!