snippetbashTip
systemctl set-default — Symlink the `default.target` alias to the given target unit. More information: <https://www.freedesk
Viewed 0 times
thecommandclialiassystemctl set-defaultsymlinkdefaulttarget
linux
Problem
How to use the
systemctl set-default command: 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>.Solution
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.targetSet
systemd to boot to CLI mode by default:systemctl set-default multi-user.targetCode Snippets
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.targetSet `systemd` to boot to CLI mode by default
systemctl set-default multi-user.targetContext
tldr-pages: linux/systemctl set-default
Revisions (0)
No revisions yet.