CompTIA Linux+ Questions and Answers
100 questions organized by topic with detailed explanations
CompTIA
XK0-006
100 questions
5 topics
Updated May 2026System Management
24 questions6 easy12 medium6 hard~23% of exam
Which bootloader is the default on most modern Linux distributions and is loaded immediately after BIOS or UEFI hands of...An administrator needs to create a Linux software RAID 1 (mirrored) array using the block devices `/dev/sdc` and `/dev/s...A Linux administrator needs to display all network interfaces along with their assigned IP addresses, prefix lengths, an...
Services and User Management
20 questions6 easy10 medium4 hard~20% of exam
A file has the permissions displayed as `-rwxr-xr--`. What is the correct numeric (octal) representation of this permiss...An administrator needs to change the owner of the file `/data/report.txt` to user `alice` and group `finance` simultaneo...An administrator wants to enable the `nginx` service to start automatically at boot AND start it immediately in the curr...
An administrator suspects unauthorized modifications to `/etc/passwd` and needs to query the audit daemon logs for all r...An administrator needs to encrypt the file `/etc/app/config.conf` using GPG symmetric encryption so it can be decrypted ...An administrator sets SELinux to permissive mode using `setenforce 0` to troubleshoot an Apache web server that cannot r...
Automation, Orchestration, and Scripting
16 questions4 easy8 medium4 hard~17% of exam
What is the purpose of the shebang line `#!/bin/bash` at the very first line of a shell script?In Ansible, which file defines the list of managed hosts (IP addresses or hostnames) that playbooks are executed against...A developer needs to create a new Git branch named `feature/login` and immediately switch to it in a single command. Whi...
Troubleshooting
22 questions6 easy11 medium5 hard~22% of exam
An administrator runs `top` and observes that many processes are in state `D` (uninterruptible sleep) and the system loa...An administrator needs to identify which process is causing the highest disk I/O on a server in real time. Which tool pr...An administrator runs `df -h` and sees the root filesystem at 100% capacity, but `du -sh /*` shows only about 60% usage....
All Questions
| # | Question | Topic | Difficulty |
|---|---|---|---|
| 1 | Which bootloader is the default on most modern Linux distributions and is loaded immediately after B... | System Management | easy |
| 2 | What is the purpose of the shebang line `#!/bin/bash` at the very first line of a shell script? | Automation, Orchestration, and Scripting | easy |
| 3 | An administrator needs to create a Linux software RAID 1 (mirrored) array using the block devices `/... | System Management | medium |
| 4 | An administrator runs `top` and observes that many processes are in state `D` (uninterruptible sleep... | Troubleshooting | hard |
| 5 | A Linux administrator needs to display all network interfaces along with their assigned IP addresses... | System Management | medium |
Sign in to see all 100 questions
Create a free account to browse all questions — completely free during our launch phase.
Ready to test your knowledge?
Take a full CompTIA Linux+ practice test with timed exam simulation.
Start Practice Test