Enable CentOS to directly enter command line mode after startup
In CentOS, how does one access the graphic interface and text interface? The real Linux server does not run the graphical interface. How can I directly access the command interface when I start the system without uninstalling the desktop? (I installed CentOS6.0) The following is a brief introduction:
1. To enter the graphic interface:
1. First install the graphic interface, which is generally the X-window Graphic Interface.
2. Start linux and enter startx under the terminal to enter the graphic operation interface of X11.
2. on the graphic interface, you can switch between multiple interfaces: on the X-window Graphic operation interface, press "Alt + Ctrl + function key Fn n = 1 ~ 6 "to enter the Console character operation interface. Press Alt + Ctrl + F7 to return to the X-window.
3. How to automatically access the xwindos or character interface every time?
It depends on the configuration in the inittab file. The file is located in the etc directory.
# Vi/etc/
Find the following statement:
# Defaultrunlevel. TherunlevelsusedbyRHSare:
# 1-Singleusermode-single-user mode
# 2-Multiuser, withoutNFS (Thesameas3, ifyoudonothavenetworking)-Multi-user mode, does not support NFS
# 3-Fullmultiusermode-Multi-User Mode
#4-unused
#5-X11-graphical interface
# 6-reboot (donotsetinitdefadefatothis)-Restart
Id: 5: initdefault:-The default running level is 5. You only need to change it to id: 3: initdefault :.
In text mode, you can use the following method to enable the graphic interface:
# Startx