Boot Linux in Command Line Mode Instead of GUI
Boot Linux in Command Line Mode Instead of GUI
Command Line
Mode Instead of
GUI
Skip Ad
Written by:baeldung
Administration
1. Introduction
In this tutorial, let’s look at how we can change the default boot option from a graphical
interface to the command-line mode. After BIOS POST is completed, the GRUB bootloader
takes over and loads the necessary files required to start our operating system and complete
the system startup. During this process, GRUB waits for a few seconds to take input.
Otherwise, it boots to the default operating system.
There are two major GRUB releases, legacy GRUB and GRUB 2. Legacy GRUB is the old
version that was dropped in 2005 at version 0.97. Since then, GRUB 2 has taken over.
However, most Linux distros that use GRUB 2 still name it GRUB. GRUB supports several
useful features like booting multiple operating systems on a single PC, live configuration
editing, and rescue mode. It also allows us to change the default boot option to our preferred
one. This can either be the graphical interface or text-mode/command-line.
2. Temporarily Booting to the
Command-Line
We can temporarily boot into a command-line during startup by accessing the GRUB menu.
This can be achieved with the following steps.
We use the down arrow key to navigate and scroll down to the following line:
On finding it, we use the left arrow key to move to the end of the line where we add a new
space followed by the number 3. We should not add anything else after 3. After these
changes, it should look similar to this:
linux /boot/vlmlinuz-5.13.0-51-generic root=UUID=731597f6-ff21-48c3-
ac3c-e7dfb0403fad ro quiet spalsh $vt_handoff 3
Copy
4. Conclusion
In this article, we’ve learned how to change from a graphical interface to a command-line
mode. Though changing to command-line mode is a preference issue. But in some instances,
it might be the only option we have. For example, when the GUI fails or has problems and
cannot complete startup, we can use the command-line mode to troubleshoot. Other times we
might run into systems with low system resources that cannot support GUI and the only
option is using the command-line. We can always switch back to the graphical interface.