Switch between CentOS7 graphical interface and command line interface

The interface is started by default;

Graphical interface>>>Command line interface

1: Open the terminal;

2: Enter "systemctl get-default" to view the current startup interface. Mine is displayed as "graphical.target" (graphical interface);

3: Enter "systemctl set-default multi-user.target" and press Enter to set it to start with the text interface by default;

4: Enter "reboot" to restart;

Command line interface>>>Graphical interface

1: Enter "systemctl get-default" to view the current startup interface, which is displayed as "multi-user.target" (command line interface);

2: Enter "systemctl set-default graphical.target" and press Enter to set the default graphical interface to start;

3: Enter "reboot" to restart;

Guess you like

Origin blog.csdn.net/qq_51235445/article/details/124999735