Pass4itsure > CompTIA > CompTIA Certifications > XK0-005 > XK0-005 Online Practice Questions and Answers

XK0-005 Online Practice Questions and Answers

Questions 4

A Linux administrator needs to remove software from the server. Which of the following RPM options should be used?

A. rpm -s

B. rm -d

C. rpm -q

D. rpm -e

Buy Now
Questions 5

The application team has reported latency issues that are causing the application to crash on the Linux server. The Linux administrator starts

troubleshooting and receives the following output:

Which of the following commands will improve the latency issue?

A. # echo 'net.core.net_backlog = 5000000' >> /etc/sysctl.conf # sysctl -p # systemctl daemon-reload

B. # ifdown eth0 # ip link set dev eth0 mtu 800 # ifup eth0

C. # systemctl stop network # ethtool -g eth0 512 # systemctl start network

D. # echo 'net.core.rmem max = 12500000' >> /etc/sysctl.conf # echo 'net.core.wmem_max = 12500000' >> /etc/sysctl.conf # sysctl -p

Buy Now
Questions 6

An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?

A. git clone https://github.com/comptia/linux+-.git git push origin

B. git clone https://qithub.com/comptia/linux+-.git git fetch New-Branch

C. git clone https://github.com/comptia/linux+-.git git status

D. git clone https://github.com/comptia/linuxt+-.git git checkout -b

Buy Now
Questions 7

A Linux administrator found many containers in an exited state. Which of the following commands will allow the administrator to clean up the containers in an exited state?

A. docker rm -- all

B. docker rm $ (docker ps -aq)

C. docker images prune *

D. docker rm -- state exited

Buy Now
Questions 8

A developer is trying to install an application remotely that requires a graphical interface for installation. The developer requested assistance to set up the necessary environment variables along with X11 forwarding in SSH. Which of the following environment variables must be set in remote shell in order to launch the graphical interface?

A. $RHOST

B. SETENV

C. $SHELL

D. $DISPLAY

Buy Now
Questions 9

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?

A. tr '(A-Z}' '{a-z}' < testfile > uppercase

B. echo testfile | tr "[Z-A]" "[z-a]" < testfile > uppercase

C. cat testfile | tr '{z-a)' '{Z-A}' < testfile > uppercase

D. tr '[a-z]' '[A-Z]' < testfile > uppercase

Buy Now
Questions 10

Users have been unable to reach www.comptia.org from a Linux server. A systems administrator is troubleshooting the issue and does the following:

Based on the information above, which of the following is causing the issue?

A. The name www.comptia.org does not point to a valid IP address.

B. The server 192.168.168.53 is unreachable.

C. No default route is set on the server.

D. The network interface eth0 is disconnected.

Buy Now
Questions 11

An administrator attempts to rename a file on a server but receives the following error.

The administrator then runs a few commands and obtains the following output:

Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?

A. chgrp reet files

B. chacl -R 644 files

C. chown users files

D. chmod -t files

Buy Now
Questions 12

A systems administrator receives reports that several virtual machines in a host are responding slower than expected. Upon further investigation, the administrator obtains the following output from one of the affected systems:

Which of the following best explains the reported issue?

A. The physical host is running out of CPU resources, leading to insufficient CPU time being allocated to virtual machines.

B. The physical host has enough CPU cores, leading to users running more processes to compensate for the slower response times.

C. The virtual machine has enough CPU cycles, leading to the system use percentage being higher than expected.

D. The virtual machine is running out of CPU resources, leading to users experiencing longer response times.

Buy Now
Questions 13

Based on an organization's new cybersecurity policies, an administrator has been instructed to ensure that, by default, all new users and groups that are created fall within the specified values below.

To which of the following configuration files will the required changes need to be made?

A. /etc/login.defs

B. /etc/security/limits.conf

C. /etc/default/useradd

D. /etc/profile

Buy Now
Exam Code: XK0-005
Exam Name: CompTIA Linux+
Last Update: Jun 10, 2026
Questions: 476
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99