CompTIAUpdated 2026Last reviewed by the CertSharp editorial team

CompTIA Linux+ (XK0-006) Practice Test

CompTIA Linux+ (XK0-006) validates the skills to configure, manage, operate and troubleshoot Linux server environments using security best practices, scripting, containerization, virtualization and automation.

Master the Command Line. Pass Linux+ on Day One.

500 scenario-based practice questions covering all 5 Linux+ domains: system management, services and user management, security, automation and scripting, and troubleshooting. Mapped to the official exam blueprint.

No credit card required · Upgrade to 500 questions for $11.99

500 Exam-Style Questions
7-Day Money-Back Guarantee

Is this for you?

Your XK0-006 exam is in the next 2–4 weeks
You've studied the concepts but aren't sure you'll pass
You want questions harder than the real exam
You want to understand why answers are correct, not just memorize

Not for you if:

You're looking for braindumps or exam leaks
You haven't started studying the concepts yet

What is the CompTIA Linux+ (XK0-006) exam?

CompTIA Linux+ (XK0-006) validates the skills to configure, manage, operate and troubleshoot Linux server environments using security best practices, scripting, containerization, virtualization and automation. The XK0-006 exam has up to 90 questions and lasts 90 minutes. The passing score is 720/900 on CompTIA's scaled range. It covers 5 domains: System Management (23%), Services and User Management (20%), Security (18%), Automation, Orchestration, and Scripting (17%), and Troubleshooting (22%). CompTIA sets the exam fee by region, so check its official page for the current price. Practice mode lets you drill one domain at a time, and every answer comes with an explanation of why the other options are wrong. CompTIA delivers the exam through Pearson VUE, at a test center or online. CertSharp's XK0-006 bank has 500 practice questions with explanations, each mapped to one of those domains. 30 questions per session are free, and the full bank with timed exam mode is $11.99 one-time with lifetime access.

Start 2–3 weeks before your exam for best results
Updated for 2026 exam blueprint
Detailed explanations for every question

Exam Overview

XK0-006 Exam Details

Know exactly what to expect on exam day

Questions

Up to 90

Duration

90 minutes

Passing Score

720/900

Exam Cost

See CompTIA

Compare this fee with other certifications in our exam cost comparison, or check your readiness with the free XK0-006 readiness quiz.

Coverage

Exam Domains Covered

Every question maps to an official XK0-006 domain

1

System Management (23%)

2

Services and User Management (20%)

3

Security (18%)

4

Automation, Orchestration, and Scripting (17%)

5

Troubleshooting (22%)

XK0-006 exam domains and their weight on the exam
DomainExam weight
System Management23%
Services and User Management20%
Security18%
Automation, Orchestration, and Scripting17%
Troubleshooting22%

Why CertSharp

Built for Exam Day, Not Just Study Time

Study guides teach concepts. We prepare you for the actual XK0-006 exam.

1

System Management questions cover LVM, filesystems, mounts, kernel modules and the boot process at the depth of the largest domain, 23% of the exam

2

Troubleshooting scenarios (22%) give real symptoms such as iostat output or orphaned files and ask which tool or fix applies, not just which flag exists

3

Every explanation says why the wrong commands fail, for example why usermod -G drops existing groups while usermod -aG appends

4

Updated for XK0-006 (V8), including Automation, Orchestration, and Scripting at 17% and the security tooling in the Security domain at 18%

Free Sample Questions

XK0-006 Practice Questions (Free Sample)

Real XK0-006 exam-style questions from our 500-question CompTIA Linux+ bank, each with the correct answer and a detailed explanation.

Question 1 — XK0-006

User bob belongs to the wheel and docker groups. An admin runs 'usermod -G developers bob' to add him to developers, and bob immediately loses sudo access. Which command should have been used?

  • A

    groupmod -n developers bob

  • B

    usermod -aG developers bob

  • C

    usermod -g developers bob

  • D

    gpasswd -d bob developers

Correct answer: B — Explanation

usermod -G replaces the whole supplementary group list, which dropped wheel and docker. Adding -a appends instead. usermod -g changes the primary group, gpasswd -d removes a user from a group, and groupmod -n renames a group.

  1. Question 2System ManagementEasy

    A monitoring alert says the /var filesystem is nearly full. Which command shows used space, available space, and percentage used for each mounted filesystem in human-readable units?

    • A

      mount -l

    • B

      lsblk -f

    • C

      df -h

    • D

      du -h

    Show answer & explanation

    Correct answer: C — df -h

    df -h reports capacity, used, available, and Use% for each mounted filesystem with human-readable sizes. du -h summarizes space used by files and directories rather than whole filesystems, lsblk -f shows filesystem types and UUIDs without usage figures, and mount -l lists mounts and options.

  2. Question 3Services and User ManagementEasy

    A security reviewer asks where hashed passwords for local accounts are stored on a modern Linux system, since the second field of each /etc/passwd line is just an 'x'. Which answer is correct?

    • A

      /etc/login.defs, which lists a hash for each user

    • B

      /etc/security/passwd, which is maintained by PAM

    • C

      /etc/gshadow, which holds the user password hashes

    • D

      /etc/shadow, which ordinary users cannot read

    Show answer & explanation

    Correct answer: D — /etc/shadow, which ordinary users cannot read

    The 'x' in /etc/passwd indicates the hash lives in /etc/shadow, which is restricted to root. /etc/gshadow stores group passwords and group administrators. /etc/security/passwd is not a standard Linux file, and /etc/login.defs holds defaults such as UID ranges and password aging, not hashes.

  3. Question 4TroubleshootingEasy

    An admin is alarmed by the output below and suspects a memory shortage: total used free shared buff/cache available Mem: 15Gi 2.1Gi 310Mi 120Mi 12Gi 12Gi Swap: 2.0Gi 0B 2.0Gi What is the correct assessment?

    • A

      The system is swapping because the cache occupies most of the physical memory space

    • B

      A memory leak exists because the buff/cache column keeps growing beyond the used value

    • C

      Memory is nearly exhausted because the free column shows just 310Mi of unused RAM

    • D

      Memory is healthy because the cache is reclaimable and the available value shows 12Gi remaining

    Show answer & explanation

    Correct answer: D — Memory is healthy because the cache is reclaimable and the available value shows 12Gi remaining

    Linux uses spare RAM for the page cache and releases it on demand, so a small free value is normal. The available column (12Gi) is the right indicator of memory that can be allocated, and swap used is 0B, so there is no pressure. High cache is not a leak and it does not mean swapping.

  4. Question 5Automation, Orchestration, and ScriptingEasy

    A service wrapper script handles the argument passed as $1. Which case pattern acts as the catch-all branch for any value not matched earlier?

    • A

      default)

    • B

      ?)

    • C

      *)

    • D

      else)

    Show answer & explanation

    Correct answer: C — *)

    In a case statement, the * pattern matches any string, and placing it last gives the default branch, usually used to print a usage message. The words default and else are not special in case patterns, and ? matches just a single character, so it would not catch longer strings.

  5. Question 6SecurityEasy

    Why should telnet be replaced by SSH for remote administration?

    • A

      SSH is faster because it skips authentication once the first connection succeeds

    • B

      Telnet encrypts the password but leaves the rest of the session data in cleartext

    • C

      Telnet sends credentials and session data in cleartext, while SSH encrypts the session

    • D

      Telnet runs over UDP, so login packets are frequently dropped during authentication

    Show answer & explanation

    Correct answer: C — Telnet sends credentials and session data in cleartext, while SSH encrypts the session

    RFC 1704 notes that most systems send passwords as plain text over the network, typically with telnet or rlogin, and NIST SP 800-123 advises protocols that encrypt both passwords and data, such as SSH. SSH encrypts the session and authenticates both server and user. The remaining statements misdescribe both protocols.

  6. Question 7System ManagementMedium

    An admin wants to mirror /var/www to backup@bk01:/srv/www, preserving permissions, owners, and timestamps, and removing files on the destination that were deleted at the source. Which command fits?

    • A

      rsync -rv --delete /var/www/ backup@bk01:/srv/www/

    • B

      rsync -an --delete /var/www/ backup@bk01:/srv/www/

    • C

      rsync -a --delete /var/www/ backup@bk01:/srv/www/

    • D

      rsync -a /var/www/ backup@bk01:/srv/www/

    Show answer & explanation

    Correct answer: C — rsync -a --delete /var/www/ backup@bk01:/srv/www/

    -a (archive mode) implies recursion plus preserved permissions, owners, groups, timestamps, and symlinks, and --delete removes destination files missing at the source. -r alone does not preserve owners or permissions, omitting --delete leaves stale files behind, and the -n flag makes the run a dry run that changes nothing.

  7. Question 8TroubleshootingMedium

    `iostat -x 1` shows device sdb with `w_await 182.7`, `aqu-sz 31.2` and `%util 99.8`, and the application using that disk is slow. The admin needs to identify which process is generating the writes. Which command is best?

    • A

      sar -n DEV 1

    • B

      iotop -oPa

    • C

      ss -tulpn

    • D

      free -m

    Show answer & explanation

    Correct answer: B — iotop -oPa

    iotop (with -o to show only active I/O and -P/-a for per-process cumulative totals) attributes disk reads and writes to individual processes. sar -n DEV reports network interface statistics, ss lists sockets, and free reports memory usage, so none of them identify the source of the disk I/O.

  8. Question 9Automation, Orchestration, and ScriptingMedium

    An engineer wants an AI chatbot to troubleshoot a failing application and is about to paste a production config file that contains database passwords and API keys into a public service. What is the appropriate action?

    • A

      Redact the secrets or use a company-approved private model, in line with data governance policy

    • B

      Paste the file as is, since the provider's servers are secured with encryption in transit

    • C

      Paste half of the file per prompt, because partial data cannot be used to train a model

    • D

      Paste the file, then rotate the passwords once the chat session has been closed

    Show answer & explanation

    Correct answer: A — Redact the secrets or use a company-approved private model, in line with data governance policy

    Anything sent to a public model may be stored or used for training, and credentials should not leave the organization. Redacting sensitive values or using an approved private deployment follows data governance and corporate policy. TLS protects just the transit, and splitting the file does not remove the secrets.

Want more XK0-006 practice questions?

Take the free XK0-006 practice test: 30 questions per session with instant explanations. Unlock all 500 questions plus timed exam mode for $11.99 one-time.

Start the Free 30-Question Practice Test

Pricing

Choose Your Plan

Start free, upgrade when you're ready

Free

Good for exploring the platform

$0
  • 30 practice questions
  • Practice mode only
  • Progress tracking
  • No exam simulation mode
Start Free
POPULAR

XK0-006 Access

Best for exam prep in 2–4 weeks

$11.99one-time
  • 500 practice questions
  • Practice & Exam modes
  • Detailed explanations
  • Lifetime access
Get XK0-006 Access — $11.99

7-day money-back guarantee

BEST VALUE

Pro — All Certs

Planning multiple certifications

$9.99/month
  • ALL certifications included
  • Unlimited questions
  • New certs added free
  • Cancel anytime
View Pro Plans

Save 30% vs buying individually

Your XK0-006 Exam Won't Wait

Score 80% on two full CertSharp mock exams and you are calibrated to pass the live XK0-006 exam.

Don't risk See CompTIA on the real exam without testing yourself first.

Start Free Practice Now

No credit card required · 30 free questions · Upgrade for $11.99 when ready

Official Certification Resources

Our practice questions align with official exam objectives. Study official materials first, then use CertSharp to test your readiness.

View Official XK0-006 Exam Details

Sources for the exam facts on this page

Questions are written against the official exam objectives and checked by the CertSharp editorial team. Found an error? Email support@certsharp.com.

FAQ

XK0-006 Frequently Asked Questions

Everything you need to know about CompTIA Linux+

What is the CompTIA Linux+ XK0-006 exam?
XK0-006 is the current CompTIA Linux+ exam (V8, launched July 15, 2025). It certifies the skills to configure, manage, operate and troubleshoot Linux server environments using security best practices, scripting, containerization, virtualization and automation.
How hard is CompTIA Linux+ XK0-006?
Linux+ is intermediate and command-line heavy. CompTIA describes the target candidate as having about 12 months of hands-on Linux server experience, and most candidates with that background plan several weeks of focused study, with extra time for performance-based tasks if they rarely work in the shell.
How many questions are on Linux+ XK0-006 and how long is it?
The exam has a maximum of 90 questions, a mix of multiple-choice and performance-based, with a 90-minute time limit.
What is the Linux+ XK0-006 passing score?
The passing score is 720 on a scale of 100-900. CompTIA uses scaled scoring, so the number of correct answers needed varies by exam form.
How much does the XK0-006 exam cost?
CompTIA does not show a voucher price on its Linux+ exam page, and prices vary by region, so check the CompTIA Store for the current list price. The previous version, XK0-005, was listed at $369 USD as of February 1, 2024.
How long is CompTIA Linux+ valid and how do I renew it?
CompTIA's Linux+ exam page does not state the validity period or continuing education terms, so confirm the current renewal policy with CompTIA before you plan around it.
How is XK0-006 different from XK0-005?
XK0-006 emphasizes configuring, monitoring and supporting Linux servers and uses five domains: System Management 23%, Services and User Management 20%, Security 18%, Automation, Orchestration, and Scripting 17%, and Troubleshooting 22%. XK0-005 had four domains, with System Management at 32% and Troubleshooting at 28%.
Is there a free XK0-006 practice test?
Yes. CertSharp offers a free XK0-006 practice test for the CompTIA Linux+ exam: 30 questions per session with detailed explanations, no credit card required. The full 500-question XK0-006 bank, including timed exam mode, is $11.99 one-time with lifetime access.