CompTIA Linux+ (XK0-005) — Question 83
After installing a new version of a package, a systems administrator notices a new version of the corresponding .service file was installed. In order to use the new version of the .service file, which of the following commands must be issued FIRST?
Answer options
- A. systemctl status
- B. systemctl stop
- C. systemctl reinstall
- D. systemctl daemon-reload
Correct answer: D
Explanation
The correct command is 'systemctl daemon-reload' because it reloads the systemd manager configuration, allowing it to recognize the changes made to the .service files. The other options, like 'systemctl stop', do not apply the new configuration, and 'systemctl status' merely checks the status without making changes. 'systemctl reinstall' is not a valid command for this purpose.