Get the App
SLTechnology News&Howtos  ›  Computer Software News  › 

How to start ubuntu command line mode settings start to enter the command line tutorial

Shulou Source: shulou.com Published: 2022-05-31 10:41:45 11月25日 Update

How does ubuntu start the command line? Recently, many netizens have been asking this question, so everyone must be very curious. Today, the editor will tell you in detail.

1. Sudo gedit / etc/default/grub

Put the code: GRUB_CMDLINE_LINUX_DEFAULT= "quiet splash"

Change to: GRUB_CMDLINE_LINUX_DEFAULT= "text"

And then sudo update-grub

2. Sudo gedit / etc/default/grub

Setting: GRUB_CMDLINE_LINUX= "text"

Then there is no splash flash when sudo update-grub 1 starts, 2

If you need to return to graphic mode in command-line mode, enter the command: startx in turn, return to command-line mode in graphical mode, press ctrl+alt+F1 at the terminal

Other finishing methods:

The way is to create an inittab file, write a line of id:3:initdefault:, then go to / etc/rc3.d, move the S13kdm to another directory to back up, restart the system, and enter the character interface as you wish.

Method 2: install sysv-rc-conf first.

Sudo apt-get install sysv-rc-conf

Run sysv-rc-conf

Sudo sysv-rc-conf

After running, you can find 2 columns of gdm items in the options, and then remove the selected gdm.

Pay attention! When you restart ubuntu and enter the character interface, you want to go back to the graphical environment not with the startx command, but with telinit 3.

Method 3: stop the GDM service directly in X environment:

Sudo update-rc.d-f gdm remove

Restart (enter text command line mode):

Sudo reboot-n

If you want to directly enter the X environment in command line mode, you need to enter: startx. If you want to boot back to the X environment, you need to enable the GDM service:

Sudo update-rc.d gdm defaults method 4: (I tested successfully under ubuntu10.04)

In graphics mode, enter the terminal first:

1. Run sudo vi/etc/default/grub

two。 Find GRUB_CMDLINE_LINUX_DEFAULT= "quiet splash"

3. Change to GRUB_CMDLINE_LINUX_DEFAULT= "quiet splash text"

4. Run sudo update-grub

5.reboot (PS: quiet for not showing the detailed startup process; splash for showing the progress bar)

To return to graphic mode in command line mode, enter the command: startx

Conversely, return to command line mode in graphical mode and press ctrl+alt+F1 at the terminal

Tags: Mode command graphics method environment run terminal input representative reverse character interface service curiosity success get what you want one line code backup file Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei OPPO Reno Xiaomi Redmi MariaDB