CompTIA Linux+ (XK0-006) Practice Exam — PowerKram (standalone preview)
CompTIA · Practice Exam · V8 blueprint (XK0-006)

CompTIA Linux+ (XK0-006) Practice Exam

Cover all five Linux+ objective areas — system management, services and users, security, automation and scripting, and troubleshooting — with objective-mapped practice questions, instant feedback in Learn mode, and a full timed simulation in Exam mode. Start with a 24-hour free trial.

Start 24-hour free trial →
500+
Practice questions
5
Objective areas
2
Study modes
24h
Free trial

CompTIA Linux+ (XK0-006) exam at a glance

Vendor
CompTIA
Exam code
XK0-006
Certification
CompTIA Linux+
Level
Intermediate / Linux systems administration
Blueprint
Exam version V8, launched July 15, 2025 (current edition)
Format
Maximum of 90 questions; multiple-choice and performance-based
Duration
90 minutes
Passing score
720 on a scale of 100–900
Delivery
Pearson VUE test center or online proctored
Recommended experience
About 12 months with Linux servers; A+, Network+, or Server+ knowledge recommended (not required)
Languages
English
Estimated retirement
About three years after launch (estimated 2028)

Source: CompTIA — Linux+ (V8) certification (exam details & objectives). Verify current details with CompTIA before scheduling.

About the CompTIA Linux+ (XK0-006) certification

CompTIA Linux+ is the vendor-neutral credential for administering Linux in modern cloud and hybrid environments. It covers the full working surface of a Linux sysadmin’s job: the boot process, storage and networking, services and users, security and hardening, and the troubleshooting that ties it together — all driven by the command line rather than a GUI. Because so much of the cloud runs on Linux, the certification reaches well beyond traditional system administration into infrastructure, security, and DevOps roles.

The current exam is version V8 (series code XK0-006), launched in July 2025 — a substantial refresh that added containers, automation and orchestration with tools like Ansible and Puppet, CI/CD pipelines, Git version control, and even responsible-AI practices for code generation. It delivers up to 90 questions — a mix of multiple-choice and hands-on performance-based items — across five objective areas, with System Management (23%) the heaviest and Troubleshooting (22%) close behind. If you are studying from pre-2025 Linux+ material, you will be missing the new automation and container content entirely. Every PowerKram practice question maps to one of the five areas, so a weak score points you at the exact objective to revisit. For context on the certification-versus-degree decision many infrastructure candidates weigh, see our guide to choosing certifications over a college degree.

Linux+ (XK0-006) exam objectives and weights

CompTIA splits the V8 exam across five objective areas. The weights below are CompTIA’s own and sum to 100% — plan your study time roughly in proportion to them.

System Management

Linux basics and the boot process, device and kernel-module management, storage (LVM, RAID, partitions), network configuration, shell operations, backups and restores, and virtualization with hypervisors and VMs.

23%Heaviest area
Troubleshooting

System monitoring and logs, hardware and storage faults (boot, mount, repair), networking issues (firewall, routing, DNS), security problems such as SELinux and permissions, and performance analysis of CPU, memory, and I/O.

22%
Services and User Management

Files and directory permissions, account and group management, process control and scheduling, software and repository management, services and logs with systemd, and operating containers.

20%
Security

Authentication and accounting (PAM, LDAP, Kerberos, auditing), firewalls (iptables, nftables, UFW), OS hardening and sudo, account security and MFA, cryptography, and compliance scanning.

18%
Automation, Orchestration, and Scripting

Automation with Ansible, Puppet, and CI/CD; shell scripting (variables, functions, logic); Python basics; Git version control; and responsible AI practices for code generation.

17%

Source: CompTIA Linux+ (V8) exam objectives.

Who the Linux+ exam is for

Linux+ is built for working professionals who run Linux: systems administrators and engineers, cloud and infrastructure technicians, and the increasing number of DevOps practitioners whose pipelines and containers sit on Linux hosts. CompTIA recommends about 12 months of hands-on Linux experience and prior A+, Network+, or Server+ knowledge — guidance rather than a hard gate. If you are still building that base, our Network+ practice exam and Server+ practice exam are common steps before Linux+.

With the V8 emphasis on automation, containers, and CI/CD, this credential maps especially well to DevOps work. The DevOps Engineer role guide in our career hub lays out the day-to-day work, the salary range, and the certifications that build on Linux+.

What this Linux+ practice exam delivers

Score by objective area

Every question is tagged to one of the five V8 areas, so your report shows whether System Management or Troubleshooting — the two heaviest — is dragging your score, not just an overall percentage.

Learn mode

Immediate feedback after each question with a full explanation of why the right answer is right and why the others are wrong — built for the command-line, scenario-based reasoning Linux+ tests.

Exam mode

A timed, 90-question-style simulation that mirrors the 90-minute format and its mix of multiple-choice and performance-based questions, so test day feels familiar.

No setup, no download

Runs in the browser with nothing to install. Your 24-hour trial unlocks the full bank and both modes — no credit card required.

Sample Linux+ practice questions

Ten free questions spanning the five objective areas, each with a full explanation. The complete bank is available with the 24-hour trial.

Question 1 · System Management

After a DNS server migration, a Linux host can no longer resolve the company’s internal site. What should the administrator check first?

  1. Update /etc/resolv.conf with the new DNS server
  2. Install a new kernel
  3. Replace system RAM
  4. Change the desktop background
Show answer & explanation

Correct: A — update /etc/resolv.conf. That file lists the DNS resolvers the system uses. After a migration, a stale nameserver entry there is the immediate cause of failed internal resolution, so it is the first thing to check (or the resolver config managing it, such as systemd-resolved or NetworkManager).

Why not the others: a new kernel (B), new RAM (C), and a desktop background (D) have nothing to do with name resolution.

Source: CompTIA Linux+ objectives — Network configuration →
Question 2 · Services and User Management

A script that used to run now fails with “Permission denied.” How should this be resolved?

  1. Add the execute bit with chmod
  2. Install new hardware
  3. Upgrade the filesystem
  4. Reboot the network switch
Show answer & explanation

Correct: A — use chmod to restore execute permission. “Permission denied” on a previously working script almost always means the execute bit was lost; chmod +x script.sh restores it.

Why not the others: new hardware (B), a filesystem upgrade (C), and rebooting a switch (D) are unrelated to a file’s permission bits.

Source: CompTIA Linux+ objectives — Files & permissions → Further reading: PowerKram — platform administration guide →
Question 3 · Troubleshooting

A user can ping a server but cannot SSH into it. What is the most likely cause?

  1. The SSH service (sshd) is not running on the server
  2. A faulty network cable
  3. Insufficient disk space
  4. The user’s password has expired
Show answer & explanation

Correct: A — sshd is not running. A successful ping proves network-layer reachability, so the problem is above that layer. If the SSH daemon is stopped (or its port is firewalled), connections fail even though ping works.

Why not the others: a faulty cable (B) would break the ping too; insufficient disk space (C) and an expired password (D) produce different, specific errors rather than a refused/timed-out connection.

Source: CompTIA Linux+ objectives — Networking troubleshooting →
Question 4 · Automation, Orchestration, and Scripting

An administrator needs to automate a daily backup of user home directories. Which tool is most appropriate?

  1. cron
  2. vi
  3. df
  4. top
Show answer & explanation

Correct: A — cron. cron schedules commands to run automatically at set times, which is exactly what a recurring daily backup needs (a systemd timer would also serve).

Why not the others: vi (B) is a text editor; df (C) reports filesystem disk usage; top (D) shows running processes. None of them schedules a task.

Source: CompTIA Linux+ objectives — Process control & scheduling → Further reading: PowerKram — platform administration guide →
Question 5 · Troubleshooting

An alert reports high disk usage on /var/log. What should be done first?

  1. Archive, rotate, or remove old log files
  2. Replace the CPU
  3. Add more RAM
  4. Disable SELinux
Show answer & explanation

Correct: A — archive, rotate, or remove old logs. /var/log fills with accumulated log data; clearing or rotating it (ideally configuring logrotate) reclaims space and prevents a full filesystem from destabilizing services.

Why not the others: CPU (B) and RAM (C) are unrelated to disk space; disabling SELinux (D) weakens security and does not free disk.

Source: CompTIA Linux+ objectives — System monitoring →
Question 6 · Services and User Management

A Linux web server fails to start Apache after a configuration change. What is the best first troubleshooting step?

  1. Validate the config with apachectl configtest
  2. Update the system BIOS
  3. Reformat the server
  4. Edit /etc/fstab
Show answer & explanation

Correct: A — run apachectl configtest. Since the failure followed a config change, testing the configuration syntax pinpoints the error before you restart the service — the logical, low-risk first move (also checkable via the service’s journal logs).

Why not the others: a BIOS update (B) is unrelated to a web service; reformatting (C) is catastrophic overkill; editing /etc/fstab (D) concerns mounting filesystems, not Apache.

Source: CompTIA Linux+ objectives — Services & logs → Further reading: PowerKram — platform administration guide →
Question 7 · Troubleshooting

A user accidentally deleted an important file from their home directory. Which step most increases the chance of recovery?

  1. Stop writing to that filesystem and attempt recovery immediately
  2. Reinstall the operating system
  3. Upgrade the kernel
  4. Change the desktop background
Show answer & explanation

Correct: A — stop writing and recover immediately. A deleted file’s data blocks remain on disk until overwritten. Minimizing further writes (ideally remounting read-only or working from another system) preserves the best chance for a recovery tool to retrieve it.

Why not the others: reinstalling the OS (B) writes heavily over the disk; a kernel upgrade (C) is irrelevant; a background change (D) does nothing for recovery.

Source: CompTIA Linux+ objectives — Backups & data recovery →
Question 8 · Services and User Management

A developer wants to give execute permission only to the file’s owner for a script — with no access for group or others. Which command does this?

  1. chmod 700 script.sh
  2. chmod 444 script.sh
  3. chmod 777 script.sh
  4. chmod 666 script.sh
Show answer & explanation

Correct: A — chmod 700. The octal digits are owner/group/other. 7 = read+write+execute for the owner, and 0/0 means no permission for group and others — exactly “owner can execute, nobody else has access.”

Why not the others: 444 (B) is read-only for everyone with no execute; 777 (C) grants full access to everyone; 666 (D) is read+write for all with no execute. None matches the owner-only-execute requirement.

Source: CompTIA Linux+ objectives — Files & permissions → Further reading: PowerKram — security practices guide →
Question 9 · Security

A Linux server must allow SSH from only specific trusted IP addresses. What is the best way to implement this?

  1. Add firewall rules permitting only the trusted IPs on port 22
  2. Install a new GUI
  3. Increase swap space
  4. Change the default shell
Show answer & explanation

Correct: A — firewall rules limiting port 22 to trusted IPs. A host firewall (nftables, iptables, or UFW) is the standard control for restricting which source addresses may reach the SSH service, and pairs well with key-based auth for defense in depth.

Why not the others: a GUI (B), more swap (C), and a different shell (D) do nothing to control which remote hosts can connect.

Source: CompTIA Linux+ objectives — Firewalls & remote access → Further reading: PowerKram — security practices guide →
Question 10 · System Management

A user needs to locate every file named config.txt under /home and its subdirectories. Which command should be used?

  1. find /home -name config.txt
  2. ls -l /home/config.txt
  3. cat /home/*
  4. df -h
Show answer & explanation

Correct: A — find /home -name config.txt. find searches a directory tree recursively and matches by name, returning every config.txt beneath /home regardless of depth.

Why not the others: ls -l (B) only lists one given path and does not recurse for a name; cat (C) prints file contents; df -h (D) reports disk usage. None performs a recursive name search.

Source: CompTIA Linux+ objectives — Shell operations →

Keep going: study guides and career paths

Linux+ proves you can run the platform most of the cloud is built on — it pays off fastest when you pair it with the next skill and a clear sense of where it leads. Two PowerKram hubs back this exam up.

Deep dive: Linux+ exam structure, scoring, study path & what comes next

Exam structure and how it’s scored

The V8 Linux+ exam (XK0-006) delivers a maximum of 90 questions in 90 minutes, combining multiple-choice items with performance-based questions that drop you onto a simulated Linux system to complete a real task. Scoring is scaled from 100 to 900, and the passing mark is 720. Performance-based items are time-consuming and tend to appear early, so flagging and skipping them, clearing the multiple-choice questions, then returning is a common pacing tactic. See our Linux & infrastructure study guides →

What changed in the V8 refresh

The July 2025 update modernized Linux+ substantially. Alongside core administration, V8 added containers, automation and orchestration with Ansible and Puppet, CI/CD pipelines, Git version control, and responsible-AI practices for code generation. That makes the Automation, Orchestration, and Scripting area (17%) genuinely new territory for anyone who studied an older version, and it is a large part of why the certification now speaks to DevOps as much as to traditional sysadmin work. Read the security practices guide →

Where the weight sits and how to study

System Management (23%) and Troubleshooting (22%) are the two heaviest areas and together approach half the exam, with Services and User Management (20%), Security (18%), and Automation/Scripting (17%) filling out the rest fairly evenly. The exam is heavily command-line and hands-on, so reading alone will not carry you: stand up a Linux VM, practise LVM and permissions, write a few shell and Python scripts, run an Ansible playbook, and break and fix services until the commands are second nature. PowerKram’s objective-level scoring surfaces which area is weakest in your first practice run. Read the platform administration guide →

Recommended experience, cost, and delivery

CompTIA recommends about 12 months of hands-on Linux experience plus A+, Network+, or Server+ knowledge — guidance rather than a hard gate. The exam is delivered through Pearson VUE at a test center or online with a proctor; the online option needs a quiet, private room and a webcam system check. At launch it is offered in English. Fees and retake policies vary by region and change over time, so confirm the current voucher price and retake rules on CompTIA’s site before you book. CompTIA’s official Linux+ page →

What comes after Linux+

Linux+ sits at the heart of modern infrastructure, and its V8 automation focus opens two natural directions: deeper into DevOps and cloud platforms, or further into security with a track such as Security+. Both build directly on the administration and scripting fundamentals Linux+ establishes. For role-by-role context on where these paths lead, browse our Career Hub. IT Administrator role guide →

Start your free 24-hour Linux+ practice trial

Full access to the question bank, both study modes, and objective-level scoring. No credit card required.

Start free trial →