Pre-Summer Special Sale Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 2493360325

Good News !!! XK0-005 CompTIA Linux+ Exam is now Stable and With Pass Result

XK0-005 Practice Exam Questions and Answers

CompTIA Linux+ Exam

Last Update 1 month ago
Total Questions : 401

CompTIA Linux+ Exam is stable now with all latest exam questions are added 1 month ago. Incorporating XK0-005 practice exam questions into your study plan is more than just a preparation strategy.

XK0-005 exam questions often include scenarios and problem-solving exercises that mirror real-world challenges. Working through XK0-005 dumps allows you to practice pacing yourself, ensuring that you can complete all CompTIA Linux+ Exam practice test within the allotted time frame.

XK0-005 PDF

XK0-005 PDF (Printable)
$50
$124.99

XK0-005 Testing Engine

XK0-005 PDF (Printable)
$58
$144.99

XK0-005 PDF + Testing Engine

XK0-005 PDF (Printable)
$72.8
$181.99
Question # 1

A developer reported an incident involving the application configuration file /etc/httpd/conf/httpd.conf that is missing from the server. Which of the following identifies the RPM package that installed the configuration file?

Options:

A.  

rpm -qf /etc/httpd/conf/httpd.conf

B.  

rpm -ql /etc/httpd/conf/httpd.conf

C.  

rpm —query /etc/httpd/conf/httpd.conf

D.  

rpm -q /etc/httpd/conf/httpd.conf

Discussion 0
Question # 2

A systems administrator needs to check if the service systemd-resolved.service is running without any errors. Which of the following commands will show this information?

Options:

A.  

systemct1 status systemd-resolved.service

B.  

systemct1 enable systemd-resolved.service

C.  

systemct1 mask systemd-resolved.service

D.  

systemct1 show systemd-resolved.service

Discussion 0
Question # 3

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

Question # 3

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

Question # 3

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

Options:

A.  

chgrp reet files

B.  

chacl -R 644 files

C.  

chown users files

D.  

chmod -t files

Discussion 0
Question # 4

A cloud engineer needs to remove all dangling images and delete all the images that do not have an associated container. Which of the following commands will help to accomplish this task?

Options:

A.  

docker images prune -a

B.  

docker push images -a

C.  

docker rmi -a images

D.  

docker images rmi --all

Discussion 0
Question # 5

A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the following commands will accomplish this task?

Options:

A.  

tar -cvzf /dev/sdd1 /dev/sdc1

B.  

rsync /dev/sdc1 /dev/sdd1

C.  

dd if=/dev/sdc1 of=/dev/sdd1

D.  

scp /dev/sdc1 /dev/sdd1

Discussion 0
Question # 6

A 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?

Options:

A.  

iptables -t nat -D PREROUTING -p tcp --sport 80 -j DNAT - -to-destination 192.0.2.25:3128

B.  

iptables -t nat -A PREROUTING -p top --dport 81 -j DNAT –-to-destination 192.0.2.25:3129

C.  

iptables -t nat -I PREROUTING -p top --sport 80 -j DNAT –-to-destination 192.0.2.25:3129

D.  

iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT –-to-destination 192.0.2.25:3128

Discussion 0
Question # 7

Due to low disk space, a Linux administrator finding and removing all log files that were modified more than 180 days ago. Which of the following commands will accomplish this task?

Options:

A.  

find /var/log -type d -mtime +180 -print -exec rm {} \;

B.  

find /var/log -type f -modified +180 -rm

C.  

find /var/log -type f -mtime +180 -exec rm {} \

D.  

find /var/log -type c -atime +180 –remove

Discussion 0
Question # 8

A 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:

Question # 8

Based on the output above, which of following is the MOST probable cause of the issue?

Options:

A.  

The address ac:00:11:22:33:cd is not a valid Ethernet address.

B.  

The Ethernet broadcast address should be ac:00:11:22:33:ff instead.

C.  

The network interface eth0 is using an old kernel module.

D.  

The network interface cable is not connected to a switch.

Discussion 0
Question # 9

A junior systems administrator has just generated public and private authentication keys for passwordless login. Which of the following files will be moved to the remote servers?

Options:

A.  

id_dsa.pem

B.  

id_rsa

C.  

id_ecdsa

D.  

id_rsa.pub

Discussion 0
Question # 10

An application developer received a file with the following content:

##This is a sample Image ##

FROM ubuntu:18.04

MAINTAINER demohut@gtmail.com.hac

COPY . /app

RUN make /app

CMD python /app/app.py

RUN apt-get update

RUN apt-get install -y nginx

CMD ["echo","Image created"]

The developer must use this information to create a test bed environment and identify the image (myimage) as the first version for testing a new

application before moving it to production. Which of the following commands will accomplish this task?

Options:

A.  

docker build -t myimage:1.0 .

B.  

docker build -t myimage: .

C.  

docker build -t myimage-1.0 .

D.  

docker build -i myimage:1.0 .

Discussion 0
Get XK0-005 dumps and pass your exam in 24 hours!

Free Exams Sample Questions