Objective 4.5XK0-005

4.5 Given a scenario, use systemd to diagnose and resolve common problems with a Linux system.

Objective 4.5 sits in Troubleshooting, which carries 28% of the Linux+ exam. The questions below are original, written from the official objective title above, and each explanation cites the CompTIA page it rests on.

Objective title verbatim from the official objectives. CompTIA exam page

A worked example

Shown solved, with the whole explanation open: this is what every question here carries.

4-5TroubleshootingModerate

An administrator checks a service:

$ systemctl status nginx
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled)
   Active: failed (Result: exit-code) since Tue 09:14

What is the unit's current run state?

Active and runningThe Active line says failed, not active or running.
Disabled at bootLoaded shows enabled, so it is set to start at boot, which is separate from failed.
FailedCorrect · your answerCorrect: 'Active: failed' shows the service is down after a bad exit.
Waiting on a timerNothing here indicates a timer; the unit stopped on its exit code.

Correct.

Concept

The status output separates whether a unit is set to start at boot from whether it is running now, and the Active line reports the current run state.

Why C

The Active line reads failed (Result: exit-code), so the unit tried to run and exited abnormally; it is not currently active.

#troubleshooting#systemd#systemctl-status

Now you: objective 4.5 questions

No account needed. The explanation opens when you answer.

Sample question 1 of 3

4-5TroubleshootingHard

A service the administrator started runs fine now but does not come back after a reboot. Which command makes it persist across reboots?

Sample question 2 of 3

4-5TroubleshootingModerate

To read only the log entries produced by the failed sshd service, which command does the administrator run?

Sample question 3 of 3

4-5TroubleshootingModerate

After editing /etc/systemd/system/app.service, an administrator finds the changes ignored until which command runs?

Full Linux+ question bank coming

We’re writing the complete bank from the official objectives right now. Leave your email and we’ll tell you when it ships, nothing else, ever.

Read the sources

These are the official pages the questions above cite. Reading them is studying the objective from the primary source, which is what the explanations point you toward anyway.

More objectives in Troubleshooting