ubuntu disable gui code example
Example 1: start Gui on your Ubuntu 20.04 system from cli
$ sudo systemctl isolate graphical
Example 2: start Gui on your Ubuntu 20.04 system from cli
$ sudo systemctl set-default graphical.target
$ sudo systemctl isolate graphical
$ sudo systemctl set-default graphical.target