Every course £11.99 / $12.99 on Udemy with code£11.99 / $12.99 with codeGP1NOV2026
All courses / Free questions / CompTIA Linux+ (XK0-006)
Free practice questions

Free CompTIA Linux+ (XK0-006) questions

Pick an answer for each question, then check all 5 at once for your score and a full explanation of every option. This first set is deliberately on the tougher side; 5 medium-level questions unlock with your email.

Question 1 of 10System Management

A technician must place a service's log directory under the Filesystem Hierarchy Standard location reserved for variable data such as logs and spool files. Which directory is correct?

Question 2 of 10Security

A technician must grant a user administrative rights by adding them to the group that /etc/sudoers grants sudo privileges to on many distributions. Which group is this?

Question 3 of 10Troubleshooting

A connection to a service is failing, and logs indicate the client and server could not agree on an acceptable protocol version. Which change most directly resolves an obsolete-protocol negotiation failure?

Question 4 of 10Automation, Orchestration, and Scripting

A script must loop until a service becomes reachable, running at least once and repeating while the check fails. Which loop keyword expresses repeating until a condition becomes true?

Question 5 of 10Services and User Management

Before installing packages, an administrator must refresh the list of available packages from the configured repositories on a Debian system. Which command does this?

Choose an answer for each question, then check all 5 at once.

5 more free questions

Unlock 5 more CompTIA Linux+ (XK0-006) questions

Add your email to see the rest now. We will also send you the free exam pack for CompTIA Linux+ (XK0-006) and a short exam-tips newsletter at the start of each month.

Ready for the full set?CompTIA Linux+ (XK0-006): 540 questions, every answer explained.
Enrol on Udemy →£11.99 / $12.99 with code GP1NOV2026

GradePath Learning is an independent education provider and is not affiliated with, endorsed by, or approved by CompTIA. CompTIA and its certification names are trademarks of their respective owners, used here only to identify the exam these practice tests prepare you for.