ubuntu 關閉X-WINDOW預設開啟 文字模式

開啟文字模式

systemctl set-default multi-user.target

開啟圖型模式

systemctl set-default graphical.target