how to restart x server ubuntu 16.04 code example Example: how to restart x window manager in ubuntu 18.04 sudo systemctl restart display-manager