linux restart xserver but keep windows code example Example: how to restart x window manager in ubuntu 18.04 sudo systemctl restart display-manager