How to switch between the graphical interface and command line in CentOS 7?
You can switch between the graphical interface and the command line on CentOS 7 using the following methods:
- By using keyboard shortcuts, you can switch to different virtual terminals by pressing Ctrl + Alt + F2-F6 keys. Ctrl + Alt + F1 key is usually the default graphical interface. You can use Ctrl + Alt + F2 key to switch to the second terminal, Ctrl + Alt + F3 key to switch to the third terminal, and so on. To return to the graphical interface, press Ctrl + Alt + F1 key.
 - Using the command line: open the terminal in the graphical interface (by clicking on the applications menu, find terminal or command line), enter the following command to switch to pure command line mode:
 
sudo systemctl isolate multi-user.target
To return to the graphical interface, enter the following command:
sudo systemctl isolate graphical.target
- To use a custom login manager: If you are using GDM (GNOME Display Manager) as your login manager, you can find an option on the login screen to switch to command line mode. After clicking on the user icon on the login screen, you may see an option (usually in the top right corner) to select “Log in to command line” or a similar option. Choosing this option will take you into pure command-line mode.
 
Please note that the above method is only applicable for CentOS 7 and higher versions. For CentOS 6 and lower versions, please use a different method to switch between the graphical interface and command line.