Skip to content

Linux+ XK0-006 practice question 4: Services and users

A service unit file was edited on a systemd host. What must the administrator run so systemd reads the change before restarting the service?

The options

  • A. systemctl daemon-reload
  • B. systemctl mask servicename
  • C. systemctl list-units
  • D. systemctl isolate rescue.target

Answer and why

The correct answer is A: systemctl daemon-reload

A. daemon-reload makes systemd re-read unit files so the edit takes effect on restart.

B. Masking prevents the service from starting at all.

C. Listing units only displays their state.

D. Isolating switches the system to a different target.

What Services and users tests

Services and user management covers systemd units, scheduling, containers, accounts, groups and permissions. Read whether the question is about a unit file, a user record or a file mode before you read the options.

Services and user management is 20% of the XK0-006 exam. The exam has 90 questions in 90 minutes, so this question is a slice of the real mix, not a prediction of your result.

Try these next

Each one is a free question from the same practice test, with the answer and the reason for every option on its own page.

Keep going

This is question 4 of 15 in the free Linux+ XK0-006 practice test. If you missed it, say why in one sentence before you read on: the reason is what transfers to a differently worded question.