How can I switch between Ubuntu 18.04's Console mode and GUI?
Introduction:
Ubuntu 18.04 LTS is a flexible Linux system that provides both a console mode interface and a graphical user interface (GUI). Knowing how to move between these two modes can be extremely helpful, especially when resolving problems, preserving system resources, or simply wishing for a command-line environment with the bare minimum of features. This tutorial demonstrates how to easily move between the GUI and console modes on Ubuntu 18.04.
How to enter console mode:
Step 1: open a terminal
You must open a terminal window in order to change to console mode. `Ctrl + Alt + F1` or `Ctrl + Alt + F2` on your keyboard will allow you to achieve this. These shortcuts let you access the many virtual terminals that Ubuntu offers.
Step 2: Log in
When you go to console mode, you will be prompted to log in using your username and password. To access the command-line interface, type your credentials.
Switching to GUI Mode:
Step 1: launch a terminal in console mode.
Using the same virtual terminal you used to enter console mode, press `Ctrl + Alt + F1` or `Ctrl +Alt + F2` to open a terminal window if you are currently in console mode.
Step 2: Restarting the Display Manager
You must restart the display manager in order to return to the GUI. You might be using GDM (GNOME Display Manager) or LightDM, depending on your Ubuntu version. In that case, use the following command:
Regarding LightDM:
| sudo service lightdm restart |
| sudo service gdm restart |
A different choice is to use the systemctl command:
For LightDM:
| sudo systemctl restart lightdm |
For GDM:
| sudo systemctl restart gdm |
Step 3: Go back to the GUI
Conclusion:
Being able to switch between Ubuntu 18.04's console mode and GUI is a useful ability that can help you resolve problems, control system resources, or simply select the best method of interacting with the operating system. Ubuntu gives you the freedom to easily switch between these modes regardless of whether you're a command-line enthusiast or prefer the graphical desktop experience.


Comments
Post a Comment