Switch the running system to multi-user.target without changing the next-boot default.
Which command is appropriate?
systemctl isolate switches the current system to the selected target. set-default changes the target used for future boots.
Detailed explanation
systemctl set-default multi-user.targetIncorrect. set-default changes future boot behavior rather than switching the current state.
Incorrect. set-default changes future boot behavior rather than switching the current state.
systemctl isolate multi-user.targetCorrect. systemctl isolate multi-user.target changes the current target.
Correct. systemctl isolate multi-user.target changes the current target.
systemctl status multi-user.targetIncorrect. status only displays unit state.
Incorrect. status only displays unit state.
systemctl is-enabled multi-user.targetIncorrect. is-enabled checks enablement and does not switch targets.
Incorrect. is-enabled checks enablement and does not switch targets.
Try it yourself
An example you can run in a temporary verification environment.
systemctl isolate --help 2>/dev/null | head || trueExpected result
isolateのhelp。target切替は行わないKey points
- isolate
- Current state
- Difference from set-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.