exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 157 discussion

Actual exam question from CompTIA's XK0-005
Question #: 157
Topic #: 1
[All XK0-005 Questions]

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
  • B. systemctl stop
  • C. systemctl reinstall
  • D. systemctl daemon-reload
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
8 months, 3 weeks ago
Selected Answer: D
D. systemctl daemon-reload Explanation: systemctl is a command-line tool used to manage services in Linux. daemon-reload is an option used with the systemctl command to reload the systemd manager configuration. This is necessary when changes are made to the configuration files of a service, such as the .service file. After a new version of a package is installed, the corresponding .service file may be updated. In order to use the new version of the .service file, it is necessary to reload the configuration with the systemctl daemon-reload command before any other action can be taken. This ensures that the systemd manager is aware of the changes made to the .service file.
upvoted 2 times
...
Ckl22
10 months, 2 weeks ago
Selected Answer: D
D is correct To have your changes take effect, issue the systemctl daemon-reload command for the service whose unit file you modified or extended. After you accomplish that task, issue the systemctl restart command to start or restart the service.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago