kill x server code example
Example 1: kill x server
sudo systemctl stop sddm.service
Example 2: kill x server
sudo service lightdm restart
Example 3: kill x server
sudo systemctl restart lightdm.service
sudo systemctl stop sddm.service
sudo service lightdm restart
sudo systemctl restart lightdm.service