Ubuntu 18.04 关闭和开启图形用户界面

 

  1. 关闭图形用户界面

    sudo systemctl set-default multi-user.target
    sudo reboot
    
  2. 开启图形用户界面

    sudo systemctl set-default graphical.target
    sudo reboot
    
Author: ismdeep
License: Copyright (c) 2021 CC-BY-NC-4.0 LICENSE