mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
564 B
Plaintext
22 lines
564 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# systemctl set-default
|
|
|
|
> Symlink the `default.target` alias to the given target unit.
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#set-default%20TARGET>.
|
|
|
|
- Set `systemd`'s default boot mode:
|
|
|
|
`systemctl set-default {{target_name.target}}`
|
|
|
|
- Set `systemd` to boot to GUI mode by default:
|
|
|
|
`systemctl set-default graphical.target`
|
|
|
|
- Set `systemd` to boot to CLI mode by default:
|
|
|
|
`systemctl set-default multi-user.target`
|