ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 148 - XK0-005 discussion

Report
Export

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?

A.
systemctl status
Answers
A.
systemctl status
B.
systemctl stop
Answers
B.
systemctl stop
C.
systemctl reinstall
Answers
C.
systemctl reinstall
D.
systemctl daemon-reload
Answers
D.
systemctl daemon-reload
Suggested answer: D

Explanation:

After installing a new version of a package that includes a new version of the corresponding service file, the systemctl daemon-reload command must be issued first in order to use the new version of the service file. This command will reload the systemd manager configuration and read all unit files that have changed on disk. This will ensure that systemd recognizes the new service file and applies its settings correctly. The systemctl status command will display information about a service unit, but it will not reload the configuration. The systemctl stop command will stop a service unit, but it will not reload the configuration. The systemctl reinstall command does not exist. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 17: System Maintenance and Operation, page 518.

asked 02/10/2024
Albaladejo Joffrey
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first