BANK QUESTIONS AND ANSWERS | VERIFIED SOLUTIONS | UPDATED 2026/2027
STUDY GUIDE
Examiner/Administrator: CompTIA
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMPTIA LINUX+ (XK0-005) CERTIFICATION EXAM
2026/2027 EDITION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMPLETE PRACTICE EXAM
100+ MULTIPLE-CHOICE QUESTIONS
PASSING SCORE: 72%
TESTING TIME: 90 MINUTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TABLE OF CONTENTS
System Management
Linux Command Line Operations
File Systems and Storage
Process and Service Management
Networking and Security
User and Group Administration
Automation and Scripting
Containerization and Virtualization
Troubleshooting and Diagnostics
Enterprise Linux Operations
COMPTIA CERTIFICATION PROGRAM || ALIGNED WITH CURRENT LINUX+ EXAM
BLUEPRINTS || ENTERPRISE LINUX ADMINISTRATION || PROFESSIONAL STUDY GUIDE
|| 100% VERIFIED | GRADED A+ || COMPREHENSIVE CERTIFICATION PREPARATION ||
PREPARED FOR PROFESSIONAL IT CERTIFICATION || PROFESSIONAL EXAMINATION
USE
,System Management & Linux Command Line Operations
Q1. A Linux administrator must identify all files larger than 500 MB under /var while
suppressing permission-denied messages. Which command best accomplishes this?
A. find /var -size +500M 2>/dev/null
B. locate /var -size +500M
C. grep -r 500M /var
D. du -sh /var/*
Correct Answer: 🔴 A. find /var -size +500M 2>/dev/null
Explanation: 🔹 The find command is specifically designed for file discovery based
on attributes such as size. Redirecting standard error to /dev/null suppresses
permission errors. locate searches a database rather than file
attributes, grep searches content, and du reports directory usage rather than
locating individual files meeting specific criteria.
Q2. An administrator notices high CPU utilization. Which command provides a real-
time interactive view of running processes and resource consumption?
A. lsblk
B. top
C. mount
D. tar
Correct Answer: 🔴 B. top
Explanation: 🔹 top displays dynamic process information, CPU usage, memory
consumption, and system load in real time. lsblk shows block
devices, mount displays mounted filesystems, and tar manages archives.
Q3. A script requires the absolute path of the current working directory. Which
command should be used?
,A. pwd
B. whoami
C. which
D. whereis
Correct Answer: 🔴 A. pwd
Explanation: 🔹 pwd prints the current working directory's full
path. whoami identifies the logged-in user, while which and whereis locate
executable files.
Q4. A system administrator wants to display only the first 15 lines of a large log file.
Which command is most appropriate?
A. tail -15 logfile
B. head -15 logfile
C. grep 15 logfile
D. sed logfile
Correct Answer: 🔴 B. head -15 logfile
Explanation: 🔹 head displays the beginning portion of a file. tail shows the
end. grep searches patterns, and sed performs stream editing operations rather
than directly limiting output to the first lines.
Q5. Which command displays detailed information about mounted filesystems and
available storage capacity?
A. free -m
B. df -h
C. uptime
D. route
Correct Answer: 🔴 B. df -h
, Explanation: 🔹 df -h reports filesystem usage in human-readable units. free -
m focuses on memory, uptime displays load statistics, and route manages routing
tables.
Q6. A Linux administrator accidentally deletes a symbolic link. What happens to the
original target file?
A. It is deleted automatically
B. It becomes inaccessible
C. It remains unaffected
D. Its permissions are reset
Correct Answer: 🔴 C. It remains unaffected
Explanation: 🔹 A symbolic link merely references another file. Removing the link
does not affect the target object. The target remains intact and accessible through
other paths.
File Systems and Storage
Q7. Which filesystem feature allows administrators to revert data to a previous point
in time?
A. Journaling
B. Snapshotting
C. RAID Striping
D. Defragmentation
Correct Answer: 🔴 B. Snapshotting
Explanation: 🔹 Snapshots create point-in-time copies of filesystem states,
facilitating recovery. Journaling assists consistency after crashes but does not
provide historical rollback capability.