updated notes
This commit is contained in:
@@ -434,4 +434,27 @@ sudo less /var/log/messages # Display the kernel messages
|
||||
|
||||
```bash
|
||||
systemctl list-units --type=target
|
||||
|
||||
### Changing the default target ###
|
||||
sudo systemctl set-default multi-user.target # Set the default target to multi-user.target
|
||||
sudo systemctl set-default graphical.target # Set the default target to graphical.target
|
||||
sudo systemctl set-default basic.target # Set the default target to basic.target
|
||||
```
|
||||
|
||||
### Run Level
|
||||
|
||||
> Note: Run level is a way to manage the boot process of a system. It is a way to manage the boot process of a system.
|
||||
> 0 is the emergency mode.
|
||||
> 1 is the single user mode.
|
||||
> 2 is the multi-user mode.
|
||||
> 3 is the multi-user mode.
|
||||
> 4 is the multi-user mode. (unused)
|
||||
> 5 is the graphical mode.
|
||||
> 6 is the reboot mode.
|
||||
|
||||
```bash
|
||||
runlevel # Display the current run level
|
||||
sudo systemctl get-default # Display the default target
|
||||
sudo systemctl set-default runlevel3.target # Set the default target to runlevel3.target
|
||||
sudo telinit 3 # Change to runlevel 3
|
||||
```
|
||||
Reference in New Issue
Block a user