What Linux+ XK0-005 is and who it’s built for
CompTIA released XK0-005 to replace XK0-004 with a domain structure that reflects how Linux administration changed by the early 2020s: containers became mainstream production infrastructure, infrastructure automation shifted from ad-hoc cron jobs and shell scripts to declarative tools like Ansible, and the security requirements for Linux systems hardened as hybrid cloud deployments replaced purely on-premises environments. The XK0-005 exam addresses all three changes directly. Scripting and containers became their own domain (Domain 3). SELinux and AppArmor moved to the center of the security domain. Troubleshooting with systemd, journalctl, and container-aware tooling replaced older SysV init-era content.
The target candidate is a Linux system administrator with at least 12 months of hands-on Linux experience. Performance-based questions (PBQs) ask candidates to demonstrate real competencies in a simulated terminal environment: configuring storage volumes, writing shell scripts, troubleshooting failed services, and adjusting SELinux enforcement policies. A candidate who has only read about Linux without operating it in a production or lab environment consistently underestimates the practical depth the exam tests. The cert is most directly relevant for: Linux system administrators managing on-premises or cloud VM infrastructure, cloud operations engineers running Linux-based EC2 or Azure VM workloads, DevOps engineers who work with containers and need to solidify OS fundamentals, and Windows-background administrators who need to formally validate Linux skills for a role transition or promotion.
Linux+ sits above A+ and Network+ in the CompTIA hierarchy but does not require either as a prerequisite. CompTIA recommends it after Network+ as a technical specialisation track, though many candidates take it independently. It sits below CySA+ and Cloud+ in seniority, and it complements rather than competes with the Cisco CCNA or AWS certifications — Linux expertise is assumed for cloud and network roles, and Linux+ is how a candidate makes that assumption a documented credential rather than an implicit claim on a CV.
Domain 1: System Management (32%) — the operational foundation
System Management is the heaviest domain by weight and the one most Linux administrators can approach with confidence from practical experience — if that experience is broad enough. The exam tests package management across the major distribution families, not just the one a candidate uses daily.
Package management — across all major distributions
Candidates need to know the full package toolchain for each major distribution family and understand when to use the high-level tool versus the lower-level tool.
- Debian/Ubuntu:
aptfor day-to-day package management;dpkgfor querying what files a package owns (dpkg -L), which package owns a file (dpkg -S), and installing a local.debfile directly.apt-cachefor searching and inspecting available packages before installation. - Red Hat/CentOS/Fedora:
dnf(the current default) andyum(still tested as legacy), withrpmfor low-level operations: querying package metadata (rpm -qi), listing installed packages (rpm -qa), and verifying package integrity (rpm -V). Repository configuration lives in/etc/yum.repos.d/as.repofiles. - SUSE/openSUSE:
zypperfor package operations; understanding YaST as the GUI management layer without needing to operate it from the terminal. - GPG key management: verifying package authenticity by importing GPG keys (
apt-key add,rpm --import), and understanding why key verification matters for supply chain security.
Storage configuration — LVM, file systems, and NFS
Storage is consistently the highest-complexity topic in Domain 1. LVM is the most exam-weighted storage technology.
- LVM workflow:
pvcreateto initialise physical volumes,vgcreateto combine PVs into volume groups,lvcreateto allocate logical volumes from a VG. Extending volumes online withlvextendandresize2fs(ext4) orxfs_growfs(XFS). Creating LVM snapshots for point-in-time backups without unmounting the source volume. - File systems:
ext4(default on Ubuntu and Debian; journalled, mature, well-supported by recovery tools);XFS(default on RHEL/CentOS; high-performance, cannot shrink online);btrfs(copy-on-write, built-in snapshots and subvolumes, transparent compression). Creating file systems withmkfs.ext4,mkfs.xfs, and mounting with persistent entries in/etc/fstab. - RAID with mdadm: RAID 0 (striping, no redundancy), RAID 1 (mirroring), RAID 5 (striping with distributed parity, minimum 3 disks), RAID 6 (double parity, survives two simultaneous disk failures). Creating, monitoring, and recovering RAID arrays with
mdadm; reading/proc/mdstatfor array health. - Network file sharing: exporting NFS shares via
/etc/exportsand managing withexportfs; mounting NFS on clients with/etc/fstaborautofs; Samba for cross-platform SMB shares (smb.conf,smbpasswd,testparm).
Kernel, boot, and systemd
- systemd: the init system tested throughout the exam. Service management (
systemctl start/stop/enable/disable/status), unit file structure (/etc/systemd/system/), target units as runlevel equivalents (multi-user.target,graphical.target,rescue.target,emergency.target), andjournaldfor structured persistent logging. - Kernel modules:
lsmod(list loaded modules),modprobe(load/unload with dependency resolution),modinfo(inspect module metadata and parameters),/etc/modprobe.d/for persistent module configuration and blacklisting. - GRUB2: editing kernel boot parameters at the GRUB menu (press
e, modify thelinuxline), understanding/etc/default/gruband runningupdate-gruborgrub2-mkconfigto regenerate the config. Passingsystemd.unit=rescue.targetorrd.breakfor single-user/recovery boot.
Domain 2: Security (21%) — hardening Linux systems
The security domain tests the layered hardening controls a production Linux system requires. Candidates who have only managed Linux in a permissive desktop or development environment consistently underestimate the mandatory access control content.
Permissions, ACLs, and special bits
- Standard permissions: octal and symbolic notation,
chmod,chown,chgrp, and umask defaults. Understanding the difference between owner, group, and other permission sets for files versus directories (execute on a directory means traverse, not run). - Special permission bits: setuid (
chmod u+s) causes an executable to run as the file owner rather than the calling user (classic example:/usr/bin/passwdruns as root to write/etc/shadow); setgid on a directory causes new files to inherit the directory’s group rather than the creator’s primary group; sticky bit on a directory prevents users from deleting files they don’t own (classic example:/tmp). - POSIX ACLs:
setfaclto add per-user or per-group permissions on top of the base permission model,getfaclto read ACL entries, and thedefault:ACL prefix to propagate ACLs to new files created inside a directory.
Mandatory Access Control: SELinux and AppArmor
MAC is the domain 2 topic that most distinguishes Linux+ candidates from those who have only administered permissive Ubuntu systems. SELinux is the default MAC system on Red Hat, CentOS, and Fedora; AppArmor is the default on Ubuntu and Debian.
- SELinux modes: Enforcing (policy violations are blocked and logged), Permissive (violations are logged but not blocked — used for debugging policy), Disabled (SELinux is not active).
getenforcereads the current mode;setenforce 0switches to Permissive temporarily without rebooting; permanent mode is set in/etc/selinux/config. - SELinux contexts: every file and process has a context label (
user:role:type:level).ls -Zshows file contexts;ps -Zshows process contexts.semanage fcontextdefines the correct context for a path;restoreconapplies it. The common exam scenario: a web server fails to serve a file because the file has the wrong context — fix it withsemanage fcontext -a -t httpd_sys_content_t "/srv/web(/.*)?"andrestorecon -Rv /srv/web. - audit2allow: when SELinux blocks an action, an AVC (access vector cache) denial appears in
/var/log/audit/audit.log.audit2allow -M mypolicy < /var/log/audit/audit.loggenerates a policy module that permits the denied action;semodule -i mypolicy.pploads it. This workflow is exam-tested. - AppArmor: profile-based confinement; profiles live in
/etc/apparmor.d/.aa-statusshows loaded profiles and their mode (enforce vs. complain);aa-enforceandaa-complainswitch modes. Theaa-genproftool generates a new profile interactively.
Firewall, SSH hardening, and auditing
- Firewall tools:
firewalld(zone-based, dynamic, the default on RHEL/CentOS; managed withfirewall-cmd);iptables(rule-based, still required knowledge for legacy systems);nftables(the kernel netfilter replacement, more consistent syntax, underlies both firewalld and iptables on modern kernels). - SSH hardening:
/etc/ssh/sshd_configdirectives —PermitRootLogin no,PasswordAuthentication no(enforces key-only auth),AllowUsers/AllowGroupsto restrict who can connect.ssh-keygento create key pairs;ssh-copy-idto deploy public keys.~/.ssh/authorized_keyspermission requirements (600 for the file, 700 for the directory). - sudo and PAM:
/etc/sudoerssyntax (always edit withvisudoto prevent syntax errors that lock out sudo access); user and group-based rules;NOPASSWDfor automation accounts. PAM (/etc/pam.d/) for pluggable authentication: password complexity requirements (pam_pwquality), account locking after failed attempts (pam_faillock), and session recording. - auditd: the Linux audit daemon writes security-relevant events to
/var/log/audit/audit.log.auditctl -w /etc/passwd -p wa -k identity-changeadds a watch on file writes;ausearch -k identity-changequeries by key;aureportgenerates summaries. Understanding auditd is a differentiator for candidates targeting government or compliance-heavy environments.
Domain 3: Scripting, Containers, and Automation (19%) — where Linux+ diverges from older exams
This domain is where XK0-005 most clearly separates itself from its predecessor and from generic Linux courses. Modern Linux administration is inseparable from scripting for task automation, containers for application packaging, and infrastructure-as-code tools for reproducible system configuration. The exam tests practical competence in all three areas, not just theoretical awareness.
Bash scripting
- Script structure: shebang (
#!/bin/bash), variables (VAR=value, no spaces around=), positional parameters ($1,$2,$@for all arguments), and$?for the exit code of the previous command. - Conditionals and loops:
if/elif/else/fiwith[[ ]]test syntax;casefor multi-branch string matching;forloops over lists and globs;whileloops with a condition; reading files line-by-line withwhile IFS= read -r line. - Common exam tasks: write a script that checks disk usage and sends an alert if above a threshold; iterate over a list of servers and run a command on each; parse
/etc/passwdto extract usernames; back up a directory with a timestamp in the filename. These are realistic automation tasks that a Linux admin writes in production — the exam tests whether the candidate can write and read them, not whether they can pass a bash trivia quiz. - Python awareness: the exam may present a short Python script and ask the candidate to explain what it does or identify an error. Candidates do not need to write Python from scratch, but should be able to read basic Python that uses
os,sys,subprocess, and file I/O.
Containers: Docker and Podman
Both Docker and Podman are in scope. The key exam distinction is architectural: Docker requires a running dockerd daemon (and traditionally ran containers as root, making daemon compromise a significant security risk); Podman is daemonless (each container is a direct child process of the calling user, enabling rootless containers without a privileged daemon).
- Core container operations:
docker pull/podman pullto fetch images;docker run/podman runwith flags for port mapping (-p 8080:80), volume mounts (-v /host/path:/container/path), environment variables (-e KEY=value), and detached mode (-d). - Dockerfile:
FROM(base image),RUN(execute commands during build),COPY(copy files from build context),EXPOSE(document a port),ENV(set environment variables),CMD(default command, overridden by arguments todocker run), andENTRYPOINT(fixed entry point, arguments todocker runare appended).docker build -t myimage:tag .to build from a Dockerfile. - Container networking: bridge network (containers on the same host communicate via a virtual bridge; default mode), host network (container shares the host network stack; maximum performance, reduced isolation), none (container has no network access).
docker network ls,docker network create, and connecting containers to named networks for service-to-service communication. - Volume management: named volumes (managed by Docker/Podman, persistent across container removal) versus bind mounts (a host directory mounted into the container path, useful for development).
docker volume ls,docker volume inspect, anddocker volume prune.
Automation with Ansible
- Architecture: Ansible is agentless — it connects to managed hosts over SSH and executes tasks using Python on the target. No agent installation required. The control node runs Ansible; the managed nodes only need SSH access and Python. This contrasts with Puppet’s agent-based pull model (agents on each managed node check in with the Puppet server for their catalog).
- Inventory and playbooks: the inventory file lists managed hosts (in INI or YAML format, grouped by role); a playbook is a YAML file containing plays, each targeting a host group and listing tasks. Common modules tested:
aptandyumfor package management,copyandtemplatefor file deployment,servicefor managing services,userandgroupfor account management. - Idempotence: a core Ansible principle. A correctly written playbook can be run multiple times and produces the same end state — tasks that have already been applied are skipped rather than reapplied. The
changedvs.okstatus in Ansible output reflects this:changedmeans the task modified something;okmeans the desired state was already present.
Domain 4: Troubleshooting (28%) — the heaviest domain and the hardest to fake
With 28% of exam weight, Troubleshooting is the single largest investment a candidate can make. The exam presents realistic failure scenarios — a service fails to start, a disk fills up, a network interface loses connectivity, a user cannot authenticate — and tests whether the candidate follows a systematic diagnostic process using the correct tools. Candidates who can troubleshoot real Linux problems have a significant advantage here over those who have studied primarily from textbooks.
Storage troubleshooting
- Disk and file system health:
df -hfor file system usage (what is mounted and how full);du -sh /pathfor directory sizes;lsblkfor a block device tree showing which devices are partitioned and mounted;fsckfor file system check and repair (must be unmounted or the system must be in single-user mode). - Full disk diagnosis: the common scenario is a root partition at 100%. Approach:
find / -xdev -size +100M 2>/dev/nullto locate large files;lsof +L1to find files that have been deleted but are still held open by a process (the space is not freed until the file handle is closed — restart the process to release it);journalctl --vacuum-size=500Mto trim journal logs. - I/O performance:
iostat -x 1for per-device utilisation and await times;iotopfor per-process I/O;blkidfor block device UUID identification (used to match fstab entries to devices).
Network troubleshooting
- Interface and routing:
ip addr showfor interface addresses and state;ip route showfor the routing table;ip link set eth0 up/downfor interface state;nmcli device statusandnmcli connection showfor NetworkManager-managed systems;nmtuifor a terminal UI to edit connections persistently. - Connectivity testing:
pingfor ICMP reachability;tracerouteandmtrfor path analysis;ss -tlnp(the modern replacement fornetstat) to list listening TCP sockets with the owning process;nmapfor scanning from another host to verify firewall rules are actually permitting expected traffic. - Packet capture:
tcpdump -i eth0 port 80 -w capture.pcapcaptures traffic to a file;tcpdump -r capture.pcapreads it. Knowing when to usess(to see what is listening locally) versustcpdump(to see what is actually transiting the wire) is an exam-tested distinction. - DNS troubleshooting:
digfor DNS resolution queries (showing the full answer section, authoritative vs. cached);nslookup; checking/etc/resolv.conffor configured nameservers;/etc/nsswitch.confto understand the resolution order (files then DNS).
Application and boot troubleshooting
- systemd diagnosis:
systemctl status <service>shows recent log output and the last failure reason;journalctl -u <service> --since "1 hour ago"retrieves the full service log for a time window;journalctl -p errfilters to error-level and above across all units. - dmesg and hardware issues:
dmesg | tail -20for recent kernel messages (hardware errors, driver loading failures, OOM killer events);dmesg -Tfor human-readable timestamps. - strace and ldd:
strace -p <PID>traces system calls on a running process (what files is it trying to open? what system calls are failing?);strace ./myprogram 2>&1 | grep ENOENTto isolate missing file errors.ldd /usr/bin/myapplists shared library dependencies and shows which are missing (reported as “not found”). - Boot recovery:
rd.breakas a kernel boot parameter drops the system into a shell before the real root file system is mounted, with the initrd still active — used to reset a forgotten root password on RHEL/CentOS by remounting the root file system read-write, chrooting into it, and runningpasswd root. Knowing the exact steps for this RHEL root password recovery procedure is consistently exam-tested.
Career value and what Linux+ leads to
Linux+ is positioned as a mid-level specialisation cert, appropriate for candidates who already have a year or more of Linux experience and want a formal credential to validate it for hiring managers and compliance requirements. In 2026, the job titles where Linux+ is most commonly listed as a requirement or preference are: Linux Systems Administrator, Junior SRE, Cloud Operations Engineer, and DevOps Engineer (infrastructure-focused). The cert is also commonly paired with CompTIA Security+ for roles in DoD-adjacent environments, where Linux skills are expected alongside security fundamentals.
Linux+ is not the cert that gets you the senior SRE role at a hyperscaler — that requires hands-on cloud experience and a Kubernetes credential. It is the cert that gets you past the ATS filter and into the room, and that gives you a structured framework for the Linux skills you already have. After Linux+, the most common progression is CKA (Certified Kubernetes Administrator) for container-native infrastructure roles, or AWS SAA-C03 for cloud operations roles where Linux is the underlying OS but the work is cloud-service-focused.
Salary ranges for Linux+ holders in 2026 vary widely by role and seniority: Linux system administrators at entry level earn $70k–$95k; mid-level Linux administrators with 3–5 years of experience earn $95k–$125k. The Linux+ cert alone does not create a salary premium in the way that specialty cloud certifications do — it validates a foundational skillset rather than a scarce specialty. Its value is highest for candidates who need to formally qualify for positions that list it, and for those making a documented transition from Windows administration to Linux-based infrastructure. Candidates who add CKA or AWS SAA-C03 after Linux+ enter a considerably higher salary band: $130k–$175k for SRE and cloud infrastructure roles is achievable with 3–5 years of combined experience and both credentials.
The most common failure pattern is over-relying on video courses without building hands-on lab time. CompTIA recommends a lab environment with at least two Linux VMs: one RHEL/CentOS-based (for SELinux, dnf, firewalld) and one Ubuntu/Debian-based (for AppArmor, apt, ufw). Use the Linux+ objectives document (free from CompTIA’s website) as your study checklist — every objective that appears on the exam is listed. Performance-based questions favour candidates who have actually configured storage, written scripts, and troubleshot network connectivity in a real or virtualised environment over those who have only read about them. Aim for 75%+ on practice exams before booking the real exam, and prioritise Domain 4 (Troubleshooting) since it carries the highest weight and the most scenario-based PBQs.
Practice with human-curated, exam-validated questions for CompTIA Linux+, AWS, Azure, GCP, and 50+ other certifications — free on CertQuests.
Start Practicing Free →