Switch Kali/Debian/Ubuntu Linux to No-Gui Mode:
$ sudo systemctl set-default multi-user.target $ sudo reboot
Switch Kali/Debian/Ubuntu Linux to Gui-Mode:
$ sudo systemctl set-default graphical.target $ sudo reboot