EnglishDeutschFrançaisEspañolPortuguês

CompTIA · COMPTIA-LINUX · Intermediate

CompTIA Linux+ — Practice Questions and Mock Exam

Prepare for COMPTIA-LINUX with original practice questions and clear answer explanations. Ask Alex, your AI tutor, when you need more detail, use your results to identify topics to review, and practice your pacing with timed mock exams.

90Mock exam questions
90minTime limit
720/ 900Passing score

Checked against CompTIA · August 2026 · Current 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.

Try five COMPTIA-LINUX questions

Try five practice questions from the app’s current CompTIA Linux+ question bank, with answers and explanations.

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 practice questions

The Pass-IT question pool gives you material to practice for COMPTIA-LINUX. A Pass-IT mock exam uses 90 questions and a 90-minute time limit; these are practice settings.

Pool details: COMPTIA-LINUX

Exam details checked against CompTIAAugust 22, 2026

date of the last check against the official CompTIA source

Passing score720 / 900

as published by CompTIA

Objectives in the guide29 objectives listed in the official guide

across 5 domains in the official exam guide

Pool size338 questions

= The pool size is equivalent to 3 sets of 90 questions; this does not mean that each mock exam uses a separate set.

Blueprint domains5 domains in the exam blueprint

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

Recorded as checked against sources314 of 338

questions recorded as having their answer, options, and explanation checked against official CompTIA documentation

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%

Select the single answer that best meets the question’s requirements.

Multiple Response11%

Select multiple answers. Follow the question’s instructions on how many to choose.

Drag & Drop9%

Move items into the slots, groups, or sequence specified by the task.

Performance-based8%

Complete a practical task in a simulated environment, following the stated requirements.

See CompTIA for official question-format information. The shares shown describe the Pass-IT practice pool; they do not establish the proportions on the official exam.

Preparing for COMPTIA-LINUX

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.

Preparation and logistics: COMPTIA-LINUX

Preparation

Illustrative study time70–180 h

illustrative planning range: 70 h with relevant experience to 180 h when starting out; your needs may fall outside this range

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

Taking and maintaining the certification

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

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

Continuing education credits60

Common pitfalls

Topics to review: 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

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+?

The passing score for the CompTIA Linux+ exam is 720 / 900.

Which pitfalls should I review when preparing for CompTIA Linux+?

Topics to review include Package Managers, SELinux vs AppArmor, LVM Operations, File Permissions, systemd Units, Firewall Tools, Bash Quoting, Boot Process. Work through examples to check that you understand the distinctions and can explain your answer.

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.

One certification, 12 months

Practice for COMPTIA-LINUX

Focus your practice on one certification, or choose Pro to practice across all certifications.

Start a free practice sessionTry the first 20 questions without a card to see whether the practice suits you.

For eligible purchases: money-back guarantee if you fail your exam.

View guarantee terms →