🔍
CompTIAIntermediateCompTIALinux+Linux AdministrationAutomation

CompTIA Linux+ (XK0-005)

XK0-005

The CompTIA Linux+ (XK0-005) exam validates Linux system management, security, scripting, containers, automation, and troubleshooting skills across enterprise environments.

Take a timed, 90-question mock exam that simulates the real test — or browse every question with answers and explanations at your own pace.

Questions

View all →
  1. 1An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct version of this file?
  2. 2A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?
  3. 3A new file was added to a main Git repository. An administrator wants to synchronize a local copy with the contents of the main repository. Which of the following commands should the administrator use for this task?
  4. 4A Linux administrator needs to redirect all HTTP traffic temporarily to the new proxy server 192.0.2.25 on port 3128. Which of the following commands will accomplish this task?
  5. 5Developers have requested implementation of a persistent, static route on the application server. Packets sent over the interface eth0 to 10.0.213.5/32 should be routed via 10.0.5.1. Which of the following commands should the administrator run to achieve this goal?
  6. 6A user is asking the systems administrator for assistance with writing a script to verify whether a file exists. Given the following: Which of the following commands should replace the string?
  7. 8A systems administrator is deploying three identical, cloud-based servers. The administrator is using the following code to complete the task: Which of the following technologies is the administrator using?
  8. 9Which of the following technologies can be used as a central repository of Linux users and groups?
  9. 10A systems administrator is troubleshooting connectivity issues and trying to find out why a Linux server is not able to reach other servers on the same subnet it is connected to. When listing link parameters, the following is presented: Based on the output above, which of following is the MOST probable cause of the issue?
  10. 11A Linux administrator was asked to run a container with the httpd server inside. This container should be exposed at port 443 of a Linux host machine while it internally listens on port 8443. Which of the following commands will accomplish this task?