CentOS 7: Switch to Graphical Interface (GUI)
On CentOS 7, you can switch to the graphical interface using the following command:
- Enable the graphical interface using the systemctl command.
sudo systemctl set-default graphical.target
- Restart the system.
sudo reboot
The system will restart and automatically enter the graphical interface. If you want to switch back to the command line interface, you can use the following command:
- Enable multi-user mode using the systemctl command (command line):
sudo systemctl set-default multi-user.target
- Reboot the system.
sudo reboot
The system will restart and enter the command line interface. You can switch between the graphical interface and the command line interface as needed.