To switch between GUI and command line interface, you need to modify a file ...
Under Root, change Id:5:initdefault to/etc/inittab
The Linux system has 7 runlevel (runlevel):
- RunLevel 0: System down state, system default RunLevel cannot be set to 0, otherwise it will not start normally
- RunLevel 1: Single User working status, root privilege, for system maintenance, remote login Forbidden
- RunLevel 2: Multi-User State (no NFS)
- RunLevel 3: Full multiuser State (with NFS), enter console command line mode after login
- Run Level 4: System not used, reserved
- Run level 5:x11 console, login to GUI mode
- RunLevel 6: The system shuts down gracefully and restarts, the default runlevel cannot be set to 6, otherwise it will not start normally
To switch to the command line here, change the 5 to 3
Reboot
After the completion is a command line interface ... Very simple
[Linux Learning] Centos graphics and command line interface switching