open gui from ubuntu terminal code example
Example 1: start Gui on your Ubuntu 20.04 system from cli
$ sudo systemctl set-default graphical.target
Example 2: how can i give command for gui ubuntu
Ubuntu 12.04 LTS COMP-1245 tty1
$ sudo systemctl set-default graphical.target
Ubuntu 12.04 LTS COMP-1245 tty1