CompTIA certification practice
Free XK0-005 Practice Test
10 free XK0-005 exam-style questions for CompTIA Linux+ (XK0-005), with answers, explanations and source references.
Full set: 487 questionsXK0-005 is the exam for CompTIA Linux+, aimed at people who administer Linux servers. There are no formal prerequisites, but CompTIA recommends 12 months of hands-on experience with Linux servers, plus knowledge at the level of CompTIA A+, Network+, Server+ or similar. CompTIA's current Linux+ page lists the newer V8 exam, XK0-006, launched July 15, 2025, so confirm which version you are preparing for before you book.
The XK0-005 objectives are split into four domains. System Management carries the most weight at 32%, and Troubleshooting follows at 28%, so together they make up 60% of the exam. Security accounts for 21%, and Scripting, Containers, and Automation covers the remaining 19%. A study plan that follows these weights gives the most time to administering and diagnosing Linux systems, while still covering security and the scripting and container work that automates routine tasks.
Work through the free practice questions one at a time and check each answer before moving on. Read every explanation, including those for questions you answered correctly, because the reasoning shows why the other options do not fit. Note the domain behind each miss, then return to that material before your next attempt.
An administrator made a change to a system's network configuration. Which of the following best represents what the administrator should do to have the new configuration take effect?
A file called testfile has both uppercase and lowercase letters:
$ cat testfile ABCDEfgH IJKLmnoPQ abcdefgH ijklLMNopq
A Linux administrator is tasked with converting testfile into all uppercase and writing it to a new file with the name uppercase.
Which of the following commands will achieve this task?
An administrator is investigating why a Linux workstation is not resolving a website. The output of dig and nslookup shows that IPv4 resolution is working, but IPv6 resolution fails.
The administrator executes: nslookup -querytype=AAAA www.comptia.org Can't find www.comptia.org: No answer The workstation has a static entry in /etc/hosts: 104.18.99.101 www.comptia.org
Which of the following is the most likely cause?
About the exam
XK0-005 exam at a glance
Key facts for the CompTIA Linux+ (XK0-005) exam, taken from the official exam page.
| Exam code | XK0-005 |
|---|---|
| Exam price | $369 USD per exam (retail, as of February 1, 2024) |
| Prerequisites | No prerequisites; 12 months of hands-on experience with Linux servers recommended, plus CompTIA A+, Network+, Server+ or similar knowledge |
| Version status | The current official Linux+ page (comptia.org/en-us/certifications/linux/) lists only Linux+ V8, exam series code XK0-006, launched July 15, 2025, and does not mention XK0-005. No official page found stating the XK0-005 retirement date. |
Source: official XK0-005 exam page. Verified . Prices and policies can change, so confirm with the provider before booking.
Exam objectives
What the XK0-005 exam covers
The XK0-005 exam is organized into 4 official domains. Weight shows the share of the exam each domain represents, so spend your study time in proportion.
- System Management 32%
- Security 21%
- Scripting, Containers, and Automation 19%
- Troubleshooting 28%
Domains and weights from the official XK0-005 exam outline.
Quick answers
XK0-005 exam FAQ
How much does the XK0-005 exam cost?
The XK0-005 exam costs $369 USD per exam (retail, as of February 1, 2024). Check the official exam page for the price in your country.
Source context
How this practice set is maintained
Maintained by the CertMage content team, this page loads questions from the exam dataset connected to its preparation resource. When an answer includes a supporting reference, it is shown with that answer so you can review the underlying vendor documentation.
Certification objectives, interfaces, and vendor services can change. Verify important details against the provider's current exam guide and documentation before your exam.
Reviewed by Ryan Nakamura CCNP, CCNA 200-301, VCP-DCV, LPIC-3, OCA
