Some Linux systems start with a graphical interface that changes to the command line interface

Source: Internet
Author: User

Background: Graphical interface is very beautiful, but now do not need a graphical interface, only the command line can be, so the graphical interface from the start to close. Body: Centos: Change the file/etc/inittab one line id:5:initdefault:

Change 5 to 3.

This should be the most original and Google came out the most common answer, according to the Linux default operating level to set, where,

0 indicates shutdown.

  1 single-user command-line mode

2 Multi-user but cannot use Network File system mode, also command line mode

3 multi-user mode, also command line mode

4 Not yet used

5 Graphical interface mode

6 indicates a restart.


Successful Kylin system:

The system clearly stated in the/etc/inittab file that it does not use the/etc/inittab file, but rather uses the SYSTEMD. The specific change method is:

Change the soft connection of the/etc/systemd/system/default.target.

If you want to open it with a graphical interface,

Root$:ln-s/lib/systemd/system/graphical.target/etc/systemd/system/default.target

If you want to open it in terminal mode,

Root$:ln-s/lib/systemd/system/multi-user.target/etc/systemd/system/default.target

Ubuntu System: (15.xx or above version of the test does not work, no matter how to change, the graphical interface can be started)

Root$:vim/etc/default/grub

Will grub_cmdline_linux_default= "Quiet Splash"

Change to grub_cmdline_linux_default= "text"

After you update grub,

Root$:update-grub

Some Linux systems start with a graphical interface that changes to the command line interface

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.