Enable CentOS to directly enter command line mode after startup

Source: Internet
Author: User
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. if you want 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. 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 CentOS 6.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:

# Default runlevel. The runlevels used by RHS are:

#1-Single user mode

#2-Multiuser, without NFS (The same as 3, if you do not havenetworking)-multi-user mode, does not support NFS

#3-Full multiuser mode-multi-user mode

#4-unused

#5-X11-graphical interface

#6-reboot (Do NOT set initdefault to this)-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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.