Ubuntu关闭图形界面

方法一

sudo /etc/init.d/lightdm stop

方法二

init 3 关闭图形界面
init 5 开启图形界面

原文地址:https://www.cnblogs.com/catmelo/p/5000194.html