Centos7 switch between the image interface and dos Interface

Source: Internet
Author: User

Centos7 switch between the image interface and dos Interface

Use in GuiCtrl + alt + F2 switch to dos Interface

Dos InterfaceCtrl + alt + F2 switch back to graphic interface

EnterSwitch the init 3 command to the command line (dos) Interface

InputSwitch the init 5 command to the graphic interface

If you want the system to start in a certain way by default

Use systemd to create a symbolic link pointing to the default running level.

The modification method is as follows:

1. delete an existing Symbolic Link
----------------------------------------------------------------------------------
Rm/etc/systemd/system/default.tar get
----------------------------------------------------------------------------------
2. The default level is 3 (text mode)
----------------------------------------------------------------------------------
Ln-sf/lib/systemd/system/multi-user.target/etc/systemd/system/default.tar get
----------------------------------------------------------------------------------
Or the default level is 5 (graphic mode)
----------------------------------------------------------------------------------
Ln-sf/lib/systemd/system/graphical.tar get/etc/systemd/system/default.tar get
----------------------------------------------------------------------------------
3. Restart
----------------------------------------------------------------------------------


Reboot

Versions earlier than centos 7

Edit/etc/inittab as Administrator
Set
Id: 5: initdefault:
Change
Id: 3: initdefault:
OK.

==================================
1. Command mode
Systemctl set-default multi-user.target
2. graphic mode
Systemctl set-default graphical.tar get

======================================
Command Line Mode Switching:
Systemctl set-default multi-user.target


Restart the machine.

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.