ubuntu closes the graphical interface
sudo systemctl set-default multi-user.target
ubuntu opens the graphical interface
sudo systemctl set-default graphical.target
ubuntu closes the graphical interface
sudo systemctl set-default multi-user.target
ubuntu opens the graphical interface
sudo systemctl set-default graphical.target