easyMultiple ChoiceObjective-mapped
XK0-006 Practice Question: A system administrator needs to check the current…
A system administrator needs to check the current runlevel on a system that uses systemd. Which command should the administrator use?
⚠ Common exam trap
The trap here is that candidates familiar with SysV init may expect a command like `runlevel` or `who -r`, but systemd uses `systemctl get-default` for the default target and `systemctl list-units --type=target` to see the current active target, not a direct runlevel command.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
systemctl get-default
On a systemd-based Linux system, runlevels are replaced by targets. The command `systemctl get-default` displays the default target, which is the runlevel-equivalent target that the system boots into by default. While it does not directly show the currently active runlevel if it has been changed after boot, it is the command most closely associated with checking the system's runlevel configuration among the given choices. To view the currently active target, `systemctl list-units --type=target` would be more precise.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
hostnamectl
Why it's wrong here
Shows hostname and OS info, not runlevel.
- ✗
getenforce
Why it's wrong here
Shows SELinux mode, not runlevel.
- ✓
systemctl get-default
Why this is correct
Displays the default target (runlevel equivalent).
- ✗
uname -r
Why it's wrong here
Shows kernel release, not runlevel.
Go deeper
Related to this question
Learn chapter
Linux Fundamentals and History
Key term
systemctl
systemctl is the command-line tool used to inspect, start, stop, enable, or disable services managed by the systemd init system in Linux.
Key term
Runlevel
A runlevel is a software configuration of a Unix-like operating system that defines which system services are running, essentially setting the system's operational state.
About these practice questions
This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.