EnglishDeutschFrançaisEspañolPortuguês

CompTIA · COMPTIA-LINUX · Intermediate

CompTIA Linux+ — Practice Questions and Mock Exam

Practice with realistic COMPTIA-LINUX questions aligned to the exam objectives. Alex explains every answer, and your readiness score shows what to study next.

90Questions
90minTime Limit
720/ 900Pass Score

Checked against CompTIA · August 2026Current exam version

About the exam

CompTIA Linux+ (XK0-006) validates the skills required to configure, manage, operate, and troubleshoot Linux environments. As a vendor-neutral certification, it covers enterprise Linux administration across distributions including Red Hat, Ubuntu, SUSE, and others, making it applicable to any Linux-based infrastructure.

The certification focuses on five core domains: system management, services and user administration, security hardening, automation and scripting, and troubleshooting. It is designed for IT professionals with at least 12 months of hands-on Linux experience and serves as a foundation for roles in system administration, DevOps, cloud infrastructure, and cybersecurity.

What's on the exam

System Management leads at 23%, covering how a system boots, how its filesystem is laid out, storage via LVM and RAID, and setting up networking at the command line. Troubleshooting follows closely at 22%, then Services and User Management at 20%, Security at 18%, and Automation, Orchestration, and Scripting at 17% — the five domains sit within six points of each other, closer than most CompTIA exams.

That flat distribution means no domain can be treated as filler. Automation carries the smallest share, but its content (Ansible, container orchestration, shell or Python scripting) increasingly overlaps with what the other four domains test in practice, since modern Linux administration rarely separates configuration from the scripts that apply it.

Exam blueprint: COMPTIA-LINUX

System Management23%

Explain core Linux concepts such as the boot process, filesystem hierarchy, and distributions, and manage devices, storage (LVM, partitions, RAID), and network configuration from the command line. Also covers shell operations and scripting basics, backup and restore utilities, and Linux virtualization with KVM/QEMU.

≈ 28 h
Services and User Management20%

Manage files, directories, and local user and group accounts on a Linux system, and control processes, jobs, and scheduled tasks. Also covers installing and configuring software and services, managing systemd units, and running containerized applications with Docker or Podman.

≈ 24 h
Security18%

Configure authentication, authorization, and accounting (PAM, LDAP, Kerberos) along with Linux firewalls such as firewalld and nftables, and apply OS and account hardening techniques including privilege escalation controls, file permissions, and SELinux. Also covers encryption and certificate management and compliance auditing practices such as vulnerability scanning and file integrity monitoring.

≈ 22 h
Automation, Orchestration, and Scripting17%

Summarize infrastructure-as-code, CI/CD, and container orchestration use cases (Ansible, Kubernetes, Docker Compose), and write shell scripts and basic Python for Linux system administration tasks. Also covers version control with Git and best practices for using AI tools responsibly in Linux administration.

≈ 20 h
Troubleshooting22%

Configure monitoring, log aggregation, and alerting for a Linux system, and troubleshoot common hardware, storage, OS, networking, and security issues. Also covers diagnosing performance problems such as memory pressure, high CPU load, and slow I/O.

≈ 26 h

Exam format and question types

The exam contains a maximum of 90 questions combining multiple-choice and performance-based question types. Performance-based questions test hands-on skills by presenting scenarios requiring command-line input, configuration file editing, or troubleshooting workflows. The exam duration is 90 minutes, and the passing score is 720 on a scale of 100 to 900.

Question types: COMPTIA-LINUX

Multiple Choice72%

Pick the single best answer from four or five options — the exam's bread and butter.

Multiple Response11%

More than one answer is correct and you need all of them; the question tells you how many to pick.

Drag & Drop9%

Drag items into the right slot, group or order — it tests whether you can apply a concept, not just recognise it.

Performance-based8%

A small hands-on task in a simulated console instead of a question — you configure something and the result is what gets graded.

CompTIA confirms these question types — a percentage split is not published; the shares reflect our exam-aligned question pool.

Try five COMPTIA-LINUX questions

Five questions straight from our CompTIA Linux+ pool. Answer one — Alex explains the why.

System Management2 / 5

An administrator needs to configure a multi-path I/O (MPIO) setup for a SAN-connected server with two HBA ports providing redundant paths to a LUN. Which service and configuration file manage this on RHEL?

AlexFull explanation from Alex

Device Mapper Multipath (DM-MPIO) manages redundant physical paths to SAN LUNs. The multipathd daemon monitors path health and handles automatic failover; configuration lives in /etc/multipath.conf (Red Hat RHEL 8 DM Multipath Guide). It creates /dev/mapper/mpathX devices that applications use instead of raw paths. 'multipath -ll' shows topology including active, standby, and failed paths. Why distractors fail: iSCSI (iscsid.conf) provides the transport layer but does not manage multiple paths to the same LUN. mdadm manages software RAID across different disks, not redundant paths to one LUN. LVM provides logical volume management on top of block devices, not path redundancy. Ref: Red Hat RHEL 8 DM Multipath Guide, man multipathd(8), man multipath.conf(5)

Sourcedocs.redhat.com

Troubleshooting3 / 5

An administrator configures an Apache virtual host but the site returns the default page instead of the custom site. The configuration file is in /etc/httpd/conf.d/mysite.conf. What is the most likely troubleshooting step?

AlexFull explanation from Alex

Apache name-based virtual hosting routes requests using the HTTP Host header matched against ServerName and ServerAlias directives. When the default page appears, the virtual host is not matching. Common causes: ServerName mismatch (www.example.com vs example.com), config file not loaded, or syntax errors. Debug with 'apachectl -S' to list all parsed virtual hosts and source files. After fixes, validate with 'apachectl configtest' and reload with 'systemctl reload httpd'. On Debian, enable sites with a2ensite. Why distractors fail: Firewall blocking port 80 causes connection refused, not a default page. Reinstalling Apache is destructive and unnecessary. Incorrect DNS prevents reaching the server entirely. Ref: Apache httpd docs mod_core ServerName, httpd.apache.org/docs/2.4/vhosts/

Sourcehttpd.apache.org

Automation, Orchestration, and Scripting4 / 5

In an Ansible playbook, which directive ensures a task runs with root privileges on the target host?

AlexFull explanation from Alex

The 'become: true' directive enables privilege escalation on the target host (docs.ansible.com — Understanding Privilege Escalation). When set, Ansible uses sudo (default method) to run the task as root (default become_user). Distractor analysis: 'sudo: yes' was deprecated in Ansible 1.9 and removed in 2.0 — no longer valid syntax. 'escalate: true' and 'privilege: root' are fabricated directives with no Ansible equivalent. Related directives: become_user (target user), become_method (sudo/su/pbrun/doas), become_flags (extra arguments). Can be applied at play, block, task, or role level and overridden via CLI with --become/-b. CompTIA Linux+ objective: Automation with configuration management tools. Refs: Ansible docs — Privilege Escalation.

Sourcedocs.ansible.com

338 questions, built like the exam

Every domain of the COMPTIA-LINUX exam has enough questions in the pool to practice it in depth. A mock exam asks 90 questions in one sitting, on the same 90-minute clock as the real thing.

Audit record: COMPTIA-LINUX

Spec check against CompTIAAugust 22, 2026

last verified against the official CompTIA source

Pass mark720 / 900

as published by CompTIA

Blueprint coverage29 official objectives

across 5 domains, from the official exam guide

Pool size338 questions

= 3 full practice exams of 90 questions each — never the same question twice

Domain coverageall 5 domains at official weight

System Management 81 · Services and User Management 75 · Security 60 · Automation, Orchestration, and Scripting 46 · Troubleshooting 76

Canonically validated314 of 338

each verified against official CompTIA documentation — answer, options and explanation, source cited

Methodology openly documented.How questions are made →

Preparing for COMPTIA-LINUX

How long you'll need depends on how much hands-on experience you bring. The rest is set by the vendor: how the exam is delivered, how soon you can retake it, and how long the credential stays valid.

CompTIA Linux+ is delivered through Pearson VUE at authorized testing centers or via online proctoring, in English. The certification holds for three years and renews with 60 CE units, by passing the current version of the exam, or by earning a higher-level CompTIA certification. Linux+ is accredited by ANSI under ISO/IEC 17024, the international standard for personnel certification.

Your plan: COMPTIA-LINUX

Preparation

Study time70–180 h

typically around 70 h if you already work with this stack, around 180 h coming to it fresh

LevelIntermediate
Worth having firstNo formal prerequisites. CompTIA A+, Network+, or Server+ and 12 months of hands-on Linux experience recommended.

Exam day & after

DeliveryPearson VUE (testing center or online proctored)
Retake policyNo waiting period after first attempt; 14-day wait after subsequent failed attempts
Stays valid3 years

Earn 60 CE units within 3 years, or pass the current version of the exam. Higher-level CompTIA certifications also renew Linux+.

CE credits60

The hours are our own planning estimate — CompTIA publishes no preparation time for this exam. A starting point for your calendar, not a target.

Common pitfalls

Package management commands vary by distribution and get tested across all of them (apt and dpkg for Debian-based systems, dnf and rpm for Red Hat, zypper for SUSE), so single-distro practice leaves gaps. systemd unit file directives (ExecStart versus ExecStartPre), LVM terminology (physical volumes, volume groups, logical volumes) and the order of operations for extending them, and SELinux context labels versus AppArmor profiles are common sources of confusion because the concepts overlap without being interchangeable. Firewall questions span iptables, nftables, and firewalld, three tools with overlapping functionality and different syntax for the same rule. Bash scripting questions test quoting and exit-code edge cases rather than basic syntax, and troubleshooting questions reward reading log output and correlating error messages over memorizing commands in isolation.

Watch list: COMPTIA-LINUX

  1. 01Package Managers

    Confusing apt/dpkg (Debian) with dnf/rpm (Red Hat) commands and options

  2. 02SELinux vs AppArmor

    Mixing up SELinux contexts/booleans with AppArmor profiles/modes

  3. 03LVM Operations

    Wrong order of operations when creating or extending logical volumes

  4. 04File Permissions

    Confusing setuid, setgid, and sticky bit behaviors on files vs directories

  5. 05systemd Units

    Misunderstanding unit file directives, target dependencies, and timer syntax

  6. 06Firewall Tools

    Confusing iptables chains/tables with firewalld zones or nftables syntax

  7. 07Bash Quoting

    Not understanding when to use single vs double quotes and variable expansion

  8. 08Boot Process

    Mixing up BIOS/UEFI boot stages, GRUB2 configuration, and systemd targets

Pass-IT trains you on exactly these weak spots — adaptive & spaced →

Frequently asked questions

How long is the CompTIA Linux+ exam?

The CompTIA Linux+ exam has 90 questions and a 90-minute time limit.

What is the passing score for CompTIA Linux+?

You need 720 / 900 to pass the CompTIA Linux+ exam.

What are common mistakes on the CompTIA Linux+ exam?

Common pitfalls include: Package Managers, SELinux vs AppArmor, LVM Operations, File Permissions, systemd Units, Firewall Tools, Bash Quoting, Boot Process. Focus study time on these areas to avoid losing points.

Which Linux+ domains carry the most weight?

System management is the largest at 23%, with troubleshooting close behind at 22% and services and user management at 20%. Security takes 18% and automation, orchestration and scripting 17%. Scripting is the domain people leave until last, and it is nearly a fifth of the exam.

What should you know before taking Linux+?

CompTIA sets no formal prerequisite but recommends A+, Network+ or Server+ plus twelve months of hands-on Linux work. The catalog budget is 120 hours, the longest of any CompTIA exam we track. That number is a fair warning: Linux+ is a command-line exam, and reading about commands is not the same as running them.

Linux+ or Server+ — which one fits?

Server+ is about server hardware, installation, disaster recovery and the physical and platform layer, regardless of operating system. Linux+ is about operating one specific operating system well: users, services, security and scripting. If your fleet is Linux, Linux+ is the closer match; if you rack and recover machines, Server+ is.

How long does Linux+ last?

Three years. You renew by earning 60 continuing-education units inside the cycle or by passing the current version of the exam again, and a higher-level CompTIA certification renews it too.

What happens if you fail Linux+?

There is no waiting period after the first attempt, so you can rebook straight away. Every failed attempt after that carries a 14-day wait.

Pass-IT is an independent study tool, not affiliated with or endorsed by CompTIA; CompTIA and exam names are trademarks of their respective owners.

One certification. One payment.

Full COMPTIA-LINUX access

Get the full question pool for this certification. Alex explains every answer, and your readiness score shows what to work on next.

Buy COMPTIA-LINUX access for $29.99One payment. Lifetime access to this certification.
Take the free readiness check20 questions. No card. See what to study before you buy.

Reach 80% readiness and pass — or your money back.

How the score works →