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.
Correct. systemctl set-default graphical.target changes the persistent boot target.
systemctl mask graphical.targetIncorrect. mask prevents activation rather than selecting a default.
Incorrect. mask prevents activation rather than selecting a default.
systemctl stop graphical.targetIncorrect. stop changes the current state and does not set future default behavior.
Incorrect. 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.
Incorrect. 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のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.