COMPTIA · XK0-006

CompTIA Linux+ XK0-006 Exam Practice Questions

155 questionsInstant PDF downloadUpdated September 2026

US$39

Try 10 questions free

Card, Apple Pay or Google Pay. Your PDF is sent by email as soon as you check out.

Pass or your money backFail the exam after using this pack and we refund it. How the guarantee works
Category:
TRY BEFORE YOU BUY

Three of the 155 questions in this pack

Question 1

A Linux administrator needs to create and then connect to the app-01-image container. Which of the following commands accomplishes this task?

  1. docker run -it app-01-image
  2. docker start -td app-01-image
  3. docker build -ic app-01-image
  4. docker exec -dc app-01-image
Show answer and explanation

Correct answer: A. docker run -it app-01-image

The `docker run -it app-01-image` command creates a new container from the specified image and connects to it interactively. The `-i` flag keeps STDIN open even if not attached, and `-t` allocates a pseudo-terminal, allowing the administrator to interact with the running container immediately.

Why the other options are wrong

  • B. docker start is used to start an existing stopped container, not create a new one from an image.
  • C. docker build is used to build images from a Dockerfile, not create or connect to containers.
  • D. docker exec runs commands in an already-running container; it cannot be used to initially create and connect to a container.

Question 2

To perform a live migration, which of the following must match on both host servers? (Choose two).

  1. USB ports
  2. Network speed
  3. Available swap
  4. CPU architecture
  5. Available memory
  6. Disk storage path ✅Correct Answer: D, F
  7. CPU architecture
  8. Disk storage path Live migration requires the same CPU architecture on both hosts so the guest's instruction set stays valid, and it requires the VM's disk to be reachable at the same storage path on each host, normally shared storage mounted identically. A mismatch in either one causes the migration to fail.
Show answer and explanation

Answer and explanation for question 2

Question 3

A Linux systems administrator needs to extract the contents of a file named /home/dev/web.bkp to the /var/www/html/ directory. Which of the following commands should the administrator use?

  1. cd /var/www/html/ && gzip -c /home/dev/web.bkp | tar xf -
  2. pushd /var/www/html/ $$ cpio -idv < /home/dev/web.bkp && popd
  3. tar -c -f /home/dev/web.bkp /var/www/html/
  4. unzip -c /home/dev/web.bkp /var/www/html/
Show answer and explanation

Correct answer: A. cd /var/www/html/ && gzip -c /home/dev/web.bkp | tar xf -

- Only this option moves into the destination directory first and then feeds the backup file through a pipe to `tar xf -`, where `-x` extracts and `-f -` reads the archive stream from standard input, so the contents land in /var/www/html/. In practice the decompression flag is `-dc` (or zcat).

Why the other options are wrong

  • B. `$$` is not a valid command separator (it should be `&&` or `;`), and cpio expects a cpio-format stream.
  • C. tar `-c` creates an archive instead of extracting, and the paths are reversed for this task.
  • D. unzip handles ZIP archives only, and this syntax would not extract into the target directory.

See all 10 free questions Get the full pack, US$39

155 practice questions for CompTIA Linux+ (XK0-006), with full explanations.

Every question comes with the correct answer, a clear explanation, and a note on why each other option is wrong. Mapped to the current XK0-006 objectives.

  • 155 questions, MCQs and PBQs, mapped to the XK0-006 objectives
  • Answers and explanations for every question, including the wrong options
  • A questions-only PDF for timed practice runs
  • Instant delivery by email the moment you check out
  • Free monthly updates for as long as the exam is live
  • Pass or your money back

A failed XK0-006 attempt costs the full US$399 voucher again. This pack is US$39, paid once, and refunded if you fail.

Try 10 questions free before you buy.

Last updated September 2026 · 155 questions

What makes the Linux+ hard

The XK0-006 is a significant step up from older Linux+ versions. It covers cloud integration, automation, scripting and security alongside traditional Linux administration, and it includes performance-based questions where you have to complete real tasks in a simulated terminal that you cannot guess your way through.

This pack has 155 practice questions for the XK0-006, every MCQ and PBQ in one place, so the question style and the PBQ format are familiar before test day.

About the exam

The CompTIA Linux+ is the leading vendor-neutral Linux administration certification. Current version V8, series code XK0-006, launched 15 July 2025, and it is the most significant update in years, adding cloud integration, automation, orchestration, scripting and AI-adjacent content to reflect how Linux is actually used in modern IT environments. It replaced XK0-005 in January 2026 and suits sysadmins, cloud engineers and DevOps professionals who work with Linux in on-premises and cloud environments.

Exam domains

  • System management: 23%
  • Services and user management: 20%
  • Security: 18%
  • Automation, orchestration and scripting: 17%
  • Troubleshooting: 22%

Up to 90 questions, 90 minutes, pass mark 720 out of 900, includes MCQs and performance-based questions, US$399 per voucher, Pearson VUE testing centres or online.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Questions before you buy

What do I get when I buy the CompTIA Linux+ XK0-006 pack?

155 practice questions as a PDF, each with the correct answer, a full explanation and a note on why the other options are wrong, plus a separate questions-only PDF for timed practice.

How quickly do I receive it?

Straight away. The full PDF and a questions-only copy are emailed to you the moment your payment goes through, and the same links are on your order page.

Is there a free sample?

Yes. Ten questions from this pack, with answers and explanations, are free on this page and as a PDF, so you can judge the quality before you pay.

Are updates included?

Yes. The pack is updated every month for as long as the exam is live, and updates are free for everyone who has bought it.

What if I fail the exam?

We refund the pack. Sit the exam 7 to 30 days after buying, then send your official score report within 7 days of the exam date, as set out in the refund policy.

Can I share it with colleagues?

Each purchase is licensed to one person. For a team, school or training organisation, email support@certstash.com for a licence that fits.