First, before writing the switch command, it is very rare to switch the graphical interface in general work, because it is mostly remote, so we only discuss it here.
Linux presets provide six command window terminals let's log in. By default we are logged in is the first window, that is, tty1, these six windows are tty1, Tty2...tty6, you can press CTRL+ALT+F1~F6 to switch them. If you have a graphical interface installed, by default it will go to the graphical interface, and you can press CTRL+ALT+F1~F6 to enter one of the command window interfaces. When you go to the Command window interface and return to the graphical interface, just press CTRL+ALT+F7 and come back. If you are using a VMware virtual machine, the shortcut key for the command window switch is ALT+SPACE+F1~F6. If you are under the graphical interface, press ALT+SHIFT+CTRL+F1~F6 to switch to the command window.
Linux 2 graphical interface and command interface switching