systemctl get-default reports graphical.target.
Which statement about default.target is correct?
default.target normally resolves to the selected target, such as multi-user.target or graphical.target, via an alias or symbolic link.
Detailed explanation
Incorrect. default.target is a systemd unit alias, not a kernel driver format.
Incorrect. default.target is a systemd unit alias, not a kernel driver format.
Correct. It resolves to the configured default target, often through a symbolic link.
Correct. It resolves to the configured default target, often through a symbolic link.
Incorrect. graphical.target is not always started independently of the default setting.
Incorrect. graphical.target is not always started independently of the default setting.
Incorrect. get-default reads the setting without requiring a reboot.
Incorrect. get-default reads the setting without requiring a reboot.
Try it yourself
An example you can run in a temporary verification environment.
systemctl get-default 2>/dev/null; readlink -f /etc/systemd/system/default.target 2>/dev/null || trueExpected result
default target名と、存在すればsymbolic linkの解決先Key points
- default.target
- Alias
- set-default
Notes
- Environment: systemd設定の読み取り
- 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.