Group services and mounts as an intended system-state milestone.
Which statement about a systemd target unit is correct?
A target groups related units through dependencies and represents a synchronization point or system state such as multi-user or graphical.
Detailed explanation
Incorrect. Machine code is stored in executable files, not target units.
Incorrect. Machine code is stored in executable files, not target units.
Correct. A target groups related units and describes a reached system state.
Correct. A target groups related units and describes a reached system state.
Incorrect. A PID identifies a process and is unrelated to target units.
Incorrect. A PID identifies a process and is unrelated to target units.
Incorrect. A partition-table type is a storage concept.
Incorrect. A partition-table type is a storage concept.
Try it yourself
An example you can run in a temporary verification environment.
systemctl list-units --type=target --no-pager 2>/dev/null | head || trueExpected result
activeなtarget unitの一部Key points
- Target unit
- Dependency grouping
- Synchronization point
Notes
- Environment: systemd採用Linux
- 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.