Courseiva
Free · No account needed · No credit card

CompTIA Linux+ (XK0-006) Practice Test

781 questions with instant explanations, domain breakdown, and wrong-answer analysis. Built for the real exam.

Instant feedback after each answer
Full explanations included
Domain score breakdown
Real exam: 90 min
Pass mark: 720/1000

Sample questions with explanations

This is exactly what you see during practice — question, options, and a full explanation after you answer.

A user reports that a service fails to start with the error 'Permission denied'. The service runs under a non-root user. Which command should the administrator use to check if the service has the correct file permissions?

namei -l /path/to/serviceCorrect
Bls -l /path/to/service
Cgetfacl /path/to/service
Dstat /path/to/service

The error 'Permission denied' when starting a service under a non-root user often involves not just the file's own permissions but also the permissions of each directory in the path leading to the service binary. The `namei -l` command recursively lists the permissions of every c…Read full explanation

A Linux server is configured to allow SSH access for remote administration. The security team wants to limit SSH access to only users in the 'ssh-users' group. Which configuration should be added to /etc/ssh/sshd_config?

AAllowUsers ssh-users
AllowGroups ssh-usersCorrect
CDenyUsers root
DPermitRootLogin yes

The AllowGroups directive in /etc/ssh/sshd_config restricts SSH logins to only those users who are members of the specified group. By setting 'AllowGroups ssh-users', only users belonging to the 'ssh-users' group will be permitted to authenticate via SSH, directly fulfilling the …Read full explanation

A Linux server is not accepting SSH connections. The administrator wants to troubleshoot the issue. Which THREE actions should be taken?

AReboot the server
Check /etc/ssh/sshd_config for configuration errorsCorrect
Check if sshd service is running (systemctl status sshd)Correct
DReinstall the SSH package (apt reinstall openssh-server)

Option B is correct because /etc/ssh/sshd_config is the primary configuration file for the OpenSSH daemon, and syntax errors, invalid directives, or a misconfigured ListenAddress/Port will prevent sshd from starting or accepting connections. Option C is correct because if the ssh…Read full explanation

Untimed Practice

Answer at your own pace. Explanation and domain tag shown immediately after each answer.

Timed Practice

Countdown timer starts immediately. Results and domain scores shown at the end — just like the real exam.

Why practice here?

Full explanations on every question

Not just the right answer — you get exactly why each wrong option is wrong, so you learn the concept, not the answer.

Domain score breakdown

After each session see your score by exam domain so you know exactly where to focus study time.

100% free, forever

No subscription, no trial, no email wall. Start a session in under 10 seconds.

Exam-style questions

Scenario-based, precise wording, realistic distractors — written to match what you actually see on exam day.

← All XK0-006 questionsXK0-006 exam guideStudy guidePractice by domain