I've set up Ubuntu 16.04.3 LTS to boot in CLI mode, and to start a GUI I run sudo lightdm start
in tty1.
My question is, Is there any way to quit GUI completely and get back to CLI in GUI?
I can quit GUI by sudo lightdm stop
in tty2 (since tty1 is running lightdm and I can't insert any command) or simply by CTRL + C. But it feels like an unusual way to me. And am I doing right to quit GUI?
sudo systemctl isolate multi-user.target
- andsudo systemctl isolate graphical.target
instead ofsudo lightdm start
- these should be independent of the particular desktop manager. – steeldriver Jan 05 '18 at 16:39