ubuntu turn off gui code example
Example 1: reset gui linux
sudo service lightdm restart
Example 2: ubuntu turn off screen terminal
$ xrandr <- to see connected devices
$ xrandr --output <output-name> --off
$ xrandr --output <output-name> --right-of <output-name> --auto
^to turn on monitor again right of another one