00:15:00

CompTIA Linux+ Practice Test (XK0-005)

Use the form below to configure your CompTIA Linux+ Practice Test (XK0-005). The practice test can be configured to only include certain exam objectives and domains. You can choose between 5-100 questions and set a time limit.

Logo for CompTIA Linux+ XK0-005
Questions
Number of questions in the practice test
Free users are limited to 20 questions, upgrade to unlimited
Seconds Per Question
Determines how long you have to finish the practice test
Exam Objectives
Which exam objectives should be included in the practice test

CompTIA Linux+ XK0-005 Information

CompTIA Linux+ (XK0-005) Exam

The CompTIA Linux+ (XK0-005) certification is designed for IT professionals who work with Linux systems. It validates skills in system administration, security, scripting, and troubleshooting. This certification is vendor-neutral, covering multiple distributions such as Ubuntu, CentOS, and Red Hat.

Exam Overview

The XK0-005 exam consists of a maximum of 90 questions, including multiple-choice and performance-based questions. Candidates have 90 minutes to complete the test. The exam costs $358 USD. A passing score is 720 on a scale of 100 to 900. The certification is valid for three years and can be renewed through CompTIA’s continuing education program.

Exam Content

The XK0-005 exam focuses on five main domains: system management, security, scripting and automation, troubleshooting, and Linux fundamentals. System management includes package management, system monitoring, and user administration. Security covers permissions, authentication, and encryption. Scripting and automation focus on Bash scripting and task automation. Troubleshooting tests problem-solving skills for system failures and performance issues. Linux fundamentals include file system hierarchy, networking, and command-line operations.

Who Should Take This Exam?

The CompTIA Linux+ certification is ideal for system administrators, Linux support technicians, and DevOps professionals. It is recommended for individuals with at least one year of Linux experience. This certification is beneficial for IT professionals working with servers, cloud infrastructure, and cybersecurity.

How to Prepare

Candidates should review the official CompTIA Linux+ Exam Objectives and study materials provided by CompTIA. Hands-on experience with Linux systems is essential. Practice exams can help assess readiness and identify weak areas. Using Linux in a lab or virtual environment can provide practical experience with commands, system configuration, and troubleshooting.

Summary

The CompTIA Linux+ (XK0-005) certification is a valuable credential for IT professionals working with Linux systems. It validates essential skills in system administration, security, and automation. This certification is ideal for those managing Linux-based environments in IT infrastructure, cybersecurity, and cloud computing.

Free CompTIA Linux+ XK0-005 Practice Test

Press start when you are ready, or press Change to modify any settings for the practice test.

  • Questions: 15
  • Time: Unlimited
  • Included Topics:
    System Management
    Security
    Scripting, Containers, and Automation
    Troubleshooting

Free Preview

This test is a free preview, no account required.
Subscribe to unlock all content, keep track of your scores, and access AI features!

Question 1 of 15

Pressing Ctrl+Z in a shell sends the SIGSTOP signal to the current foreground process, thus immediately and permanently stopping the process.

  • False

  • True

Question 2 of 15

A system administrator is writing a shell script that periodically checks the disk space usage on a Linux server. To ensure that the output of the disk check does not flood the terminal or logs when running the script via a cron job, the administrator wants to discard the standard output. Which command redirection to /dev/null achieves this purpose?

  • df -h > /dev/null

  • df -h | /dev/null

  • df -h 2> /dev/null

  • df -h &> /dev/null

Question 3 of 15

What would be the result of the following command: echo 'The quick brown fox' | sed 's/quick/slow/'?

  • The slow brown fox

  • The quick slow brown fox

  • Theslowbrownfox

  • The quick brown fox

Question 4 of 15

What command would you use to display all the currently running container instances in the system?

  • docker inspect

  • docker running

  • docker ps

  • docker list

Question 5 of 15

An administrator wants to conduct an aggressive scan to retrieve version information, run default scripts, and to detect the operating system of the target device. Which Nmap command option should be used?

  • -o

  • -p-

  • -A

  • -sn

Question 6 of 15

A system administrator is tasked with setting up several virtual machines to join an existing cloud infrastructure. They need to ensure that each virtual machine is configured automatically upon boot with a specific hostname pattern, user credentials, and custom network configuration without manual intervention. Which technology would be the MOST effective for achieving this goal during the initial boot process?

  • Ansible

  • Systemd service units

  • Cloud-init

  • Puppet

Question 7 of 15

When working in the terminal, you need to display the absolute path of your current working directory. Which command will provide you with the most accurate and detailed result?

  • ls -a

  • cd -

  • dirname $(pwd)

  • pwd

Question 8 of 15

What is the primary purpose of the directory located at '/home' in a Linux file system?

  • To maintain system-wide configuration files

  • To store personal user files and directories

  • To store executables necessary for booting the system

  • To hold temporary files that are deleted upon reboot

Question 9 of 15

What is a Pod in the context of a Kubernetes environment?

  • A tool used to manage the lifecycle of Kubernetes containers, including their deployment and scaling operations

  • A collection of nodes designed to host the containers within a Kubernetes cluster

  • The networking layer within Kubernetes that handles outbound traffic from containers

  • The smallest deployable unit in Kubernetes, which may consist of one or more containers that share storage and network, as well as specifications on how to run the containers

Question 10 of 15

A system administrator needs to ensure that a recently installed kernel appears in the boot menu. The GRUB2 bootloader is used, and the administrator has copied the new kernel image to /boot. Which of the following commands should be executed to regenerate the GRUB2 configuration so that the new kernel will be listed at boot time?

  • grub2-mkconfig --refresh

  • update-grub

  • grub2-mkconfig -o /boot/grub/grub.cfg

  • mkinitrd

Question 11 of 15

When configuring a systemd service unit file, selecting which 'Type' setting will only consider the service started once the process finishes initializing and is ready to accept connections or tasks?

  • idle

  • simple

  • forking

  • notify

  • dbus

  • oneshot

Question 12 of 15

Which command would you use to download a file from the internet using the command line while ensuring that the output is saved with a specific filename?

Question 13 of 15

When administering a system, which command would you use to load a kernel module for immediate use without reflecting on module dependencies or its configuration?

  • lsmod

  • modinfo

  • insmod

  • modprobe

Question 14 of 15

A Linux administrator needs to verify if a newly installed web server is listening on the default port and is reachable from a remote system. Which command should the administrator use?

  • nmap -p 80 remote_server_ip

  • dig remote_server_ip -p 80

  • openssl s_client -connect remote_server_ip:80

  • netstat -tuln | grep ':80'

Question 15 of 15

An administrator needs to enable a fellow technician to access a remote Linux server for system management. Which of the following configurations will BEST ensure that the technician can connect securely without password authentication?

  • Use ssh-keygen to create a key pair and ssh-copy-id to copy the public key to the server.

  • Instruct the technician to use ssh-add followed by the server's IP to access the server.

  • Modify the ~/.ssh/config file on the technician's machine to include the server's information.

  • Provide the technician with the server password to use with SSH.