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.
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:14What is the unit's current run state?
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.
Now you: objective 4.5 questions
No account needed. The explanation opens when you answer.
Sample question 1 of 3
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
To read only the log entries produced by the failed sshd service, which command does the administrator run?
Sample question 3 of 3
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
- 4.1 4.1 Given a scenario, analyze and troubleshoot storage issues.
- 4.2 4.2 Given a scenario, analyze and troubleshoot network resource issues.
- 4.3 4.3 Given a scenario, analyze and troubleshoot central processing unit (CPU) and memory issues.
- 4.4 4.4 Given a scenario, analyze and troubleshoot user access and file permissions.