CompTIA Linux+ (XK0-004) — Question 313
A senior systems administrator wants to standardize the commands used in the department and update documentation for junior Linux administrators for using systemd.
Which of the following commands replaces the old command service named stop?
Answer options
- A. systemctl kill named
- B. systemctl stop named
- C. systemctl named stop
- D. systemctl named kill
Correct answer: B
Explanation
The correct command to stop a service with systemd is 'systemctl stop named', which directly corresponds to the previous service command. The other options either use incorrect syntax or command structures that do not align with systemd's command format.