Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How can I restart my GUI (X window server) from command line without rebooting the system? Which process(es) do I need to kill and do they automatically restart?
All you need to do is restart LightDM as root, like so:
sudo restart lightdm
This worked for me:
sudo service lightdm restart
Required, but never shown