Home/comptia/Free COMPTIA Linux+ XK0-005 Actual Exam Questions

Free COMPTIA Linux+ XK0-005 Actual Exam Questions

The questions for this exam were last updated on January 7, 2026

Dumps Box (DumpsBox) offers up-to-date practice exam questions for XK0-005 certification exam which are developed and validated by CompTIA subject domain experts certified in COMPTIA Linux+ XK0-005 . These practice questions are update regularly as we keep an eye on any recent changes in XK0-005 syllabus, and when there is update our team quickly adjusts the questions. This commitment to providing the best quality exam prep material to certification aspirants is what makes DumpsBox.com the best certification exam prep website. On top of that, our strong, yet strictly moderated, community based feedback keeps the content clean and current. Each question has helpful community discussion that provides it extra perspective and introduces helpful resources for better exam preparation. This also saves students from other outdated practice questions or illicit exam dumps that can have adverse affects on career. Browse through our COMPTIA Linux+ XK0-005 exam questions and pass your exam on first try.

Question No. 1
A Linux engineer needs to block an incoming connection from the IP address 2.2.2.2 to a secure shell
server and ensure the originating IP address receives a response that a firewall is blocking the
connection. Which of the following commands can be used to accomplish this task?
Select one option, then reveal solution.
Question No. 2
A systems administrator identifies multiple processes in a zombie state. Which of the following
signals would be best for the administrator to send to the PPID?
Select one option, then reveal solution.
Question No. 3

An administrator made a change to a system's network configuration. Which of the following best represents what the administrator should do to have the new configuration take effect?

Select one option, then reveal solution.
Question No. 4
Which of the following can reduce the attack surface area in relation to Linux hardening?
Select one option, then reveal solution.
Question No. 5
A Linux administrator needs to check extended permissions applied to the directory test. Which of
the following commands should the administrator use to help with this task?
Select one option, then reveal solution.
Question No. 6
A Linux systems administrator is updating code. After completing the update, the administrator
wants to publish the updated code without including the configuration files. Which of the following
should the administrator use to accomplish this task?
Select one option, then reveal solution.
Question No. 7
An operations engineer is planning to start a container running a PostgreSQL database. The engineer
wants the container to start automatically at system startup, mount the /home/db directory as
/var/lib/postgresql inside the container, and expose port 5432 to the OS. Which of the following
commands should the engineer run to achieve this task?
Select one option, then reveal solution.
Question No. 8

A file called testfile has both uppercase and lowercase letters:

$ cat testfile ABCDEfgH IJKLmnoPQ abcdefgH ijklLMNopq

A Linux administrator is tasked with converting testfile into all uppercase and writing it to a new file with the name uppercase.

Which of the following commands will achieve this task?

Select one option, then reveal solution.
Question No. 9
A systems administrator created a user cron to run a scheduled database backup cronjob on the
server at 1 a.m. every day. The following is the cronjob syntax:
0 1 * * * /bin/sh backup.sh
The backups, however, are not being created. When checking the crontab file, the administrator sees
the following error:
/var/spool/cron/crontab/cron: Permission denied
Which of the following will permit the cronjob to execute?
Select one option, then reveal solution.
Question No. 10

An administrator is investigating why a Linux workstation is not resolving a website. The output of dig and nslookup shows that IPv4 resolution is working, but IPv6 resolution fails.

The administrator executes: nslookup -querytype=AAAA www.comptia.org Can't find www.comptia.org: No answer The workstation has a static entry in /etc/hosts: 104.18.99.101 www.comptia.org

Which of the following is the most likely cause?

Select one option, then reveal solution.
Question No. 11
A diagnostic tool reports a "host seems down" event for a server with an IP address of 192.168.47.44.
Which of the following commands should the administrator use to confirm the host down event?
Select one option, then reveal solution.
Question No. 12

A systems administrator is configuring a Linux system so the network traffic from the internal network 172.17.0.0/16 going out through the eth0 interface would appear as if it was sent directly from this interface. Which of the following commands will accomplish this task?

Select one option, then reveal solution.
Question No. 13Drag & Drop

DRAG DROP As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following: Add relevant content to /tmp/script.sh, so that it finds and compresses rotated files in /var/log without recursion. INSTRUCTIONS Fill the blanks to build a script that performs the actual compression of rotated log files. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button. XK0-005 practice exam questions

Options
Atar
Buntil
Czip
Degrep
Eawk
F$log
G"$6"
Hpgrep
Irepeat
J/tmp/tempfile
KLocate
LFilename
Mrar
Nthen
O"log.[1-6]$"
PIn
Qdone
R/var/log
Sfor
TXZ
U$1
Vsed
Wgzip
X"$log.[1-6]$"
Ywhile
Drag an item to a target. Click × to remove.
Answer Area
find /var/log -type f -maxdepth 1 | grep
Drop item here
> /tmp/tempfile
Drop item here
filename
Drop item here
$(cat
Drop item here
do
Drop item here
$filename
Drop item here
Question No. 14Drag & Drop

DRAG DROP You have been asked to parse a log file of logins to determine various information about who is logging in and when. INSTRUCTIONS Open and inspect the Login log file. Drag and drop the correct commands onto the output that was generated from that command. Tokens can be used only once and not all will be used. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

Options
Atr "la-zi" "[A-2] log.txt | grep -1 "mar 12"
Bawk print $1 | log.txt uniq
Cутер - аr 12 log.txt | sed 's/la-z]/[A-81/q
Dgrep "Маr 13 log.txt
Egrep Mar 13 log.txt
Fawk print $1 log.txt | sort | uniq-c
Gawk print toupper(60) 1 log.txt
Hawk print $1 ) log.txt | sort | uniq
Igrep "Mar13" log.txt
Jgrep log.txt "Mar 13"
Kawk print $2 log.txt sort uniq
L[A-la-zi < log.txt | grep mar 12
Drag an item to a target. Click × to remove.
Answer Area
[comptia@localhost exercise]$
Drop item here
[comptia@localhost exercise]$
Drop item here
[comptia@localhost exercise]$
Drop item here
Question No. 15
HOTSPOT
A new drive was recently added to a Linux system. Using the environment and tokens provided,
complete the following tasks:
• Create an appropriate device label.
• Format and create an ext4 file system on the new partition.
The current working directory is /.
XK0-005 practice exam questions