Break Shift

CompTIA · exam XK0-006 · Intermediate · IT support, Software & DevOps

Linux+ practice questions, in short shifts

Free practice questions for the CompTIA Linux+ (XK0-006) exam, mapped to the official objectives, with the reason behind every answer. Study a topic in fifteen minutes, come back tomorrow, and watch your readiness score move.

The free bank has 75 original questions in 15 shifts. Each one pairs a short Linux+ study guide with five questions, so it works as a study guide and as a XK0-006 practice exam in small pieces.

Start a free Linux+ shift

Try three now. No account needed.

3 sample questions from the free Linux+ practice test bank, from different exam areas. Pick your answer, then open the explanation.

  1. Question 1 · System Management

    An administrator tries to load the module nvme_tcp with insmod and gets "Unknown symbol in module" because it depends on the nvme_fabrics module. Which command loads nvme_tcp along with any modules it needs?

    • Ainsmod -f nvme_tcp.ko
    • Bmodprobe -v nvme_tcp
    • Cdepmod -a $(uname -r)
    • Dmodinfo -d nvme_tcp
    Show answer

    Answer: B. modprobe -v nvme_tcp

    • ✗ AForcing insmod still loads only one file and does not pull in nvme_fabrics, so the missing symbols remain.
    • ✓ BCorrect. modprobe reads modules.dep and loads nvme_fabrics and any other dependencies before nvme_tcp.
    • ✗ Cdepmod rebuilds the module dependency map but does not load any module into the kernel.
    • ✗ Dmodinfo only displays information about the module, here its description. Nothing is loaded.
  2. Question 2 · Services and User Management

    An admin runs `ln report.txt backup.txt` in a project directory, then deletes report.txt with rm. A colleague opens backup.txt afterwards. What do they find?

    • AA dangling link that points to a file that no longer exists
    • BThe same data as before, because the inode is still linked
    • CNothing, since rm removes every name that shares the inode
    • DAn unreadable file until the inode is relinked with ln -f
    Show answer

    Answer: B. The same data as before, because the inode is still linked

    • ✗ AThat is how a symbolic link behaves. ln without -s creates a hard link, which does not depend on the original name.
    • ✓ BCorrect. A hard link is another name for the same inode, and the data is freed only when the link count reaches zero.
    • ✗ Crm removes one directory entry and lowers the link count by one. Other hard links to the inode remain.
    • ✗ DNo relinking is needed. backup.txt is a normal directory entry for the inode and reads as usual.
  3. Question 3 · Security

    Auditors want a searchable record every time anyone writes to /etc/sudoers or changes its attributes. Which approach meets the requirement on a host running auditd?

    • Aauditctl -w /etc/sudoers -p wa -k sudoers, then search with ausearch -k sudoers
    • Bjournalctl -u sudo -f, saving the output to a file that is kept for auditors
    • Cchattr +a /etc/sudoers, then confirm the flag is set by running lsattr on it
    • DAdd /etc/sudoers to /etc/logrotate.d/ so each version is kept as a rotated copy
    Show answer

    Answer: A. auditctl -w /etc/sudoers -p wa -k sudoers, then search with ausearch -k sudoers

    • ✓ ACorrect. A watch with permissions wa logs writes and attribute changes, and the key makes the events easy to find with ausearch. Put the rule in /etc/audit/rules.d/ to keep it after reboot.
    • ✗ BThere is normally no sudo unit, and following the journal does not record writes to the file itself. sudo logs commands it runs, not edits made by other means.
    • ✗ CThe append-only attribute limits how the file can change but records nothing about who changed it. It also breaks visudo, which replaces the file.
    • ✗ Dlogrotate rotates log files on a schedule. It does not record who changed a file, and rotating sudoers would remove the active policy.

What the XK0-006 exam covers

The exam covers 5 areas. The percentages show roughly how much of the exam each one makes up, and our free questions follow the same areas.

  • System Management

    Explain basic Linux concepts; Summarize Linux device management concepts and tools; Given a scenario, manage storage in a Linux system; Given a scenario, manage network services and configurations on a Linux server; and 3 more.

    7 topics · 20 free questions

    23%
  • Services and User Management

    Given a scenario, manage files and directories on a Linux system; Given a scenario, perform local account management in a Linux environment; Given a scenario, manage processes and jobs in a Linux environment; Given a scenario, configure and manage software in a Linux environment; and 2 more.

    6 topics · 15 free questions

    20%
  • Security

    Summarize authorization, authentication, and accounting methods; Given a scenario, configure and implement firewalls on a Linux system; Given a scenario, apply OS hardening techniques on a Linux system; Explain account hardening techniques and best practices; and 2 more.

    6 topics · 15 free questions

    18%
  • Automation, Orchestration, and Scripting

    Summarize the use cases and techniques of automation and orchestration; Given a scenario, perform automated tasks using shell scripting; Summarize Python basics used for Linux system administration; Given a scenario, implement version control using Git; and 2 more.

    6 topics · 10 free questions

    17%
  • Troubleshooting

    Given a scenario, analyze and troubleshoot hardware, storage, and Linux OS issues; Given a scenario, analyze and troubleshoot networking issues on a Linux system; Given a scenario, analyze and troubleshoot security issues on a Linux system; Given a scenario, analyze and troubleshoot performance issues.

    4 topics · 15 free questions

    22%

Based on the official XK0-006 exam outline. Check it before you book, since details can change. Break Shift is independent and isn't affiliated with or endorsed by CompTIA.

Why short shifts work

Short sessions spread over days give better recall than one long sitting, and answering questions teaches more than rereading. So each Linux+ shift is one topic, a short guide and five questions, small enough to finish on a break. See the research behind it.

Linux+ questions, answered

Are these the real XK0-006 exam questions?

No. Every question is original, written in the exam's style from the official XK0-006 objectives. The questions on the exam itself are confidential, and the exam will word things differently.

Is the Linux+ practice free?

Yes. All 75 questions in the free bank, a study guide for every topic and your readiness score are free with an account. No card needed. Premium adds fresh practice written for the topics you miss, and timed concept tests.

How long does a Linux+ study shift take?

About fifteen minutes: a short guide to one topic, then five practice questions with the reason behind every answer.

More questions and answers

Related exams