Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to set up the switch between command line interface and graphical interface in Ubuntu

Shulou Source: shulou.com Published: 2022-06-01 08:00:31 10月01日 Update

This article will explain in detail how to set up Ubuntu command line interface and graphical interface switching, the quality of the article content is high, so Xiaobian shared with you as a reference, I hope you have a certain understanding of related knowledge after reading this article.

Code:

The code is as follows:

sudo gedit /etc/default/grub

Quote:

The code is as follows:

GRUB_CMDLINE_LINUX="text"

Code:

The code is as follows:

sudo update-grub

This is a good modification, reboot, you will find that the graphical interface no longer comes out, but directly into the command line mode, if you want to enter the graphical interface again, say, in the command line mode, enter startx, you can.

In graphic mode, enter terminal first:

1. Run sudo vi/etc/default/grub

2. Find GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

3. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"

4. Run sudo update-grub

5.reboot

(PS: quiet means no detailed startup process is displayed;splash means progress bar is displayed)

Command line mode to return to graphics mode, enter the command: startx

Conversely, graphics mode returns to command line mode, pressing ctrl+alt+F1 at the terminal

1. sudo gedit /etc/default/grub

Change the code:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Changed to: GRUB_CMDLINE_LINUX_DEFAULT="text"

Or: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"

Then sudo update-grub

2.sudo gedit /etc/default/grub

Settings:GRUB_CMDLINE_LINUX="text"

Then sudo update-grub

1 No splash flash at startup, 2 Yes

About Ubuntu how to set up the command line interface and graphical interface switch to share here, I hope the above content can have some help for everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Tags: Commands graphics modes interfaces code switches representatives content articles more knowledge articles terminals input run good again the reverse but quality Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL NVidia Shulou Information Microsoft MariaDB