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