Configure normal boots to enter a graphical environment with a display manager.
Which command is appropriate?
Setting graphical.target as the default makes normal boots target a GUI-capable state.
Detailed explanation
systemctl set-default graphical.targetCorrect. systemctl set-default graphical.target changes the persistent boot target.
systemctl mask graphical.targetIncorrect. mask prevents activation rather than selecting a default.
systemctl stop graphical.targetIncorrect. stop changes the current state and does not set future default behavior.
systemctl get-default graphical.targetIncorrect. get-default is a query and does not accept a target to set.
Try it yourself
An example you can run in a temporary verification environment.
systemctl set-default --help 2>/dev/null | head || trueExpected result
set-defaultのhelp。設定変更は行わないKey points
- graphical.target
- Display manager
- Persistent default
Notes
- Environment: systemctl helpのみ
- Use read-only commands or a disposable Linux instance when checking boot metadata.
- Exact unit names and command output can vary slightly by distribution.
Foundation review
Place the operation
Choosing a graphical target expresses the desired boot state; it does not install a desktop or display manager.
Check the side effect
Confirm that the graphical packages and display-manager unit exist before selecting the target.