Change the Default Boot Target with systemctl
Make Linux boot to a text console to save resources, or restore the graphical desktop as default.
01Command
$ sudo systemctl set-default multi-user.target02What it does
systemd boots into a target, and graphical.target starts the display manager while multi-user.target stops after the network and console login. set-default replaces the default.target symlink so the change persists across reboots, and get-default shows the current choice. This is the systemd replacement for editing the old /etc/inittab.
03Risk
04Undo
$ sudo systemctl set-default graphical.target05Sources
- systemctl(1) — Debian manpageEvidence: Debian manpage describes set-default TARGET as setting the default boot target, e.g. multi-user.target or graphical.target
- systemctl(1) — man7.orgEvidence: Man page documents systemctl get-default and set-default for changing the default boot target
Last verified: 2026-09-19 · Category: System & Settings
06Related solutions
systemctl cat reveals a service's unit file plus every drop-in override; systemctl edit creates overrides without touching vendor files.
systemd runs a per-user service manager: units in ~/.config/systemd/user/ can start at login without sudo.
timedatectl lists, sets, and verifies the system timezone and NTP sync status on systemd distributions.