CompTIA Practice Questions

CompTIA Linux+ Objectives Practice Questions

CompTIA Linux+ XK0-005 Exam Objectives, Domains & Study Guide — Trying to make sense of the Linux+ exam objectives before you dive into studying? You're in the right spot. The linux+ exam objectives for XK0-005 break down into four weighted domains - System Management, Security, Scripting Automation and Cloud, and Troubleshooting - and knowing how those comptia linux+ exam domains are weighted changes how you should spend your study hours. We've mapped every linux+ xk0-005 domains area with sample questions so you can see exactly what CompTIA expects, not just a bare list of topics copied from a PDF.

up to 90
Total Questions
90 minutes
Time Limit
720/900 (scaled)
Passing Score
$358
Registration Fee

Free Sample Questions

Here are 5 free sample questions from our full bank of 650+ CompTIA Linux+ Objectivespractice questions. Try them out below — click "Show Answer" to reveal the correct response and explanation.

1

A system administrator needs to find all files larger than 500MB in the /var directory and its subdirectories, then list them sorted by size. Which command accomplishes this?

Afind /var -size +500M -exec ls -la {} \;
Bgrep -r 'size:500M' /var | sort
Cdu -sh /var/* | grep 500M
Dls -R /var | awk '{print $5}' | sort -n
2

A Linux administrator wants to restrict SSH access so that only members of the 'sysadmins' group can log in remotely. Which configuration change in /etc/ssh/sshd_config achieves this?

ADenyUsers *
BPermitRootLogin no
CAllowGroups sysadmins
DMaxAuthTries 1
3

You're writing a Bash script that should exit immediately if any command in it fails, rather than continuing on to the next line. Which line near the top of the script enforces this?

Atrap 'exit' ERR
Bset -e
C#!/bin/bash -f
Dexec set fail
4

A server's root filesystem keeps filling up unexpectedly, and the administrator suspects a runaway log file. Which command shows real-time disk usage per directory so the culprit can be tracked down quickly?

Atop
Bfree -h
Cvmstat 1
Ddu -h --max-depth=1 / | sort -rh
5

A container built from a custom Dockerfile keeps crashing on startup with a permissions error when it tries to write to /app/data. The directory is owned by root inside the image, but the container runs as a non-root user by design. What is the BEST fix?

AAdd 'USER root' as the last line of the Dockerfile so the container always runs as root
BRun the container with --privileged to bypass permission checks
CIn the Dockerfile, chown /app/data to the non-root user before switching to USER
DMount /app/data as a tmpfs volume to avoid permission checks entirely

Get the Full CompTIA Linux+ Objectives Question Bank — 650+ Practice Questions

You just saw 5 sample questions. We have a complete bank of 650+ CompTIA Linux+ Objectivespractice questions with detailed answers and explanations ready for you. Fill out the form below and we'll send you the full question bank — completely free.

We'll send the full question bank to this email.

We won't spam you. Just a quick follow-up if needed.

All fields are required.

About the CompTIA Linux+ Objectives

Format & Structure

Total Questions
up to 90
Time Limit
90 minutes
Format
Multiple choice and performance-based

Scoring & Cost

Passing Score
720/900 (scaled)
Registration Fee
$358

Frequently Asked Questions

What are the CompTIA Linux+ XK0-005 exam objectives?

The Linux+ exam objectives are CompTIA's official blueprint for the XK0-005 version, spelling out every task and topic you could be tested on. They're grouped into four domains - System Management, Security, Scripting Automation and Cloud, and Troubleshooting. CompTIA publishes the full objectives as a free PDF, and honestly, it's the single best study resource you'll find because it comes straight from the source.

How many domains does the Linux+ exam cover, and how are they weighted?

There are four domains on XK0-005. System Management carries the heaviest weight at roughly 32%, followed by Security at about 22%, Scripting Automation and Cloud at around 24%, and Troubleshooting rounding it out near 22%. Those numbers shift slightly with each CompTIA update, so it's worth double-checking the current PDF before you lock in a study plan.

What does the Linux+ System Management domain actually cover?

This is the biggest domain, and it's broad - package management (apt, dnf, rpm), filesystem hierarchy and permissions, storage configuration including LVM, process and service management with systemd, and kernel modules. If you only have time to master one domain deeply, make it this one. It touches almost everything a Linux admin does day to day.

What's included in the Linux+ Security domain?

Security on the Linux+ exam objectives covers user and group administration, SSH configuration and hardening, firewall tools like firewalld and iptables, SELinux and AppArmor, file permissions and access control lists, and basic hardening practices. It's not as deep as Security+ obviously, but it's more than a surface-level treatment - you need to actually configure these controls, not just define them.

How much scripting knowledge do I need for Linux+?

More than you might expect. The Scripting, Automation, and Cloud domain expects you to read and write Bash scripts, understand version control basics with Git, work with automation concepts, and know your way around containers (Docker) and orchestration basics. You don't need to be a developer, but you should be comfortable writing a script with loops, conditionals, and variables without staring at it for ten minutes.

Which Linux+ domain should I prioritize when I'm short on time?

Start with System Management since it's weighted heaviest and its concepts show up woven into the other domains anyway - permissions and processes matter in security questions too. After that, split remaining time between Security and Scripting Automation and Cloud based on your existing background. If you already script regularly, lean into Security instead. Troubleshooting tends to come together naturally once the other three domains click.

Is hands-on practice necessary for the Linux+ objectives, or is reading enough?

Reading alone won't cut it. A good chunk of the exam uses performance-based questions where you actually manipulate a simulated command line - not just pick a multiple choice answer. Spin up a free virtual machine or use a cloud trial and practice the commands listed in each objective. Muscle memory with the terminal makes a real difference on assessment day.

How is XK0-005 different from the older XK0-004 objectives?

XK0-005 put more weight on cloud concepts, containers, and automation compared to XK0-004, reflecting how much Linux administration has shifted toward hybrid and cloud environments. There's also updated coverage of newer tooling and a slightly reorganized domain structure. If you find older study material referencing XK0-004, treat it as a rough guide only - some objectives moved or changed emphasis entirely.

Get 650+ CompTIA Linux+ Objectives Practice Questions

Don't settle for just 5 sample questions. Request the full question bank and start preparing with confidence.

Get Started