2

For the new version elementary 5.1 Hera the correct command to launch a termianl is io.elementary.terminal -n


1

The worst is that noone mentioned that you must use alt+ctrl+F1 to F6 to switch to terminal. Login there as standard user. Restart x with sudo command and then press alt+ctrl+F7 to go back to GUI.


1

On Ubuntu 18.04, I do this executing next command: sudo systemctl restart lightdm


Only top voted, non community-wiki answers of a minimum length are eligible