If you want to switch directly between the command line mode and the graphical interface, you only need to execute the following two commands.
1. Switch the graphical interface to the command line mode
init 3
2. Switch the command line mode to the graphical interface
init 5
If we want to automatically enter the graphical interface or command line when booting interface, you can modify the /etc/inittab file.
Enter the vi /etc/inittab command to modify the id:5:initdefault configuration.
Recommended tutorial: linux tutorial
The above is the detailed content of How to switch between graphical interface and command line interface in Linux. For more information, please follow other related articles on the PHP Chinese website!