Update System/linux-gui-cli.adoc

little format changes
This commit is contained in:
Celestino Amoroso 2025-07-02 07:17:16 +02:00
parent 2f2ec009b8
commit d73efb3d30

View File

@ -26,9 +26,10 @@ toc::[]
To switch to text mode (also known as command-line interface or CLI) in systemd-based systems, you can use systemctl `set-default multi-user.target` to permanently change the default boot target. Alternatively, you can temporarily switch to text mode using `systemctl isolate multi-user.target`.
Here's a breakdown of how to switch to text mode:
Here's a breakdown of how to switch to text mode
### Checking the Current Default Target
### 1. Checking the Current Default Target*
First, it's helpful to know what your current default target is. You can check this with:
systemctl get-default
@ -36,7 +37,8 @@ First, it's helpful to know what your current default target is. You can check t
This command will display the current default target, which is likely `graphical.target` if you're currently in a graphical environment.
### 2. Permanently Switching to Text Mode (Multi-User Target)
### Permanently Switching to Text Mode (Multi-User Target)
To make text mode the default target on boot, use the following command:
sudo systemctl set-default multi-user.target
@ -48,7 +50,8 @@ After running this command, you will need to reboot your system for the change t
Now, when your system starts, it will boot directly into text mode.
###3. Temporarily Switching to Text Mode (Using isolate)
### Temporarily Switching to Text Mode (Using isolate)
If you want to switch to text mode without changing the default, you can use the isolate command:
sudo systemctl isolate multi-user.target
@ -72,18 +75,23 @@ Or, if you used isolate, you can switch back with:
## Important Notes
### multi-user.target
This target represents a system with networking enabled but without a graphical interface (X server or Wayland).
### graphical.target
This target represents a system with a graphical interface.
### Reboot
When changing the default target, a reboot is necessary for the change to be applied.
### Temporary changes
Using isolate provides a temporary change that is not persistent across reboots.
### Closing Applications
Switching to text mode will terminate any running graphical applications. Make sure to save your work before switching.