Switch the graphic interface to text mode in LINUX

Source: Internet
Author: User
Article Title: Switch to text mode on the LINUX interface. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

1. Start the system to enter the text mode.

If you want to enable the system to automatically enter the plain text mode,

Modify/etc/inittab

Find

Id: 5: initdefault:

This line indicates that the running level is 5 at startup, that is, the graphic mode.

3 is the text mode.

Id: 3: initdefault:

This is because the Linux operating system has six different run levels. At different run levels, the system has different states. These six run levels are:

0: Shutdown (remember not to set initdefault to 0, because this will make Linux unable to start)

1: single-user mode, just like the security mode in Win9X.

2: multiple users, but not NFS.

3: full multi-user mode, standard operation level.

4: It is generally not used. In some special cases, you can use it to do something.

5: X11, which means entering the X-Window system.

6: restart (remember not to set initdefault to 6, because this will make Linux continuously restart ).

Among them, running level 3 is the standard Console character interface mode we want to enter.

2. Force exit X-Window to Enter text mode

Open a terminal

Input init 3

(Note that there is a space behind init)

After a while, the graphic interface will be displayed.

After the preceding method is switched, the window mode is completely closed. If any file in the window is not saved, it will be lost.

(Init 5 can return to the GUI, but the original process is dead)

3. Do not exit X-Window to Enter text mode

In the X-Window Graphic operation interface, press "Alt + Ctrl + function key Fn" (n = 1 ~ 6), you can enter the text mode interface. This means that you can have X-Window and six text-mode interfaces at the same time. How exciting this is!

Press "Alt + Ctrl + F7" to return to the X-Window Graphic operation interface from the text mode interface. In this case, seven screens are displayed in Linux by default, numbered tty1 ~ Tty7. After X-Window is started, tty7 screen, tty1 ~ Tty6 is still a character screen. That is to say, you can use the "Alt + Ctrl + Fn" combination key to quickly switch between the character interface and the X Window Interface.

When X-Window loses response or crashes due to itself or applications, we can easily exit X-Window and go to the Console for troubleshooting, all you need to do is press "Alt + Ctrl + Backspace.

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.