Spring Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

CompTIA Linux+ Exam

Last Update 12 hours ago Total Questions : 487

The CompTIA Linux+ Exam content is now fully updated, with all current exam questions added 12 hours ago. Deciding to include XK0-005 practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our XK0-005 exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these XK0-005 sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any CompTIA Linux+ Exam practice test comfortably within the allotted time.

Question # 141

A Linux administrator has defined a systemd script docker-repository.mount to mount a volume for use by the Docker service. The administrator wants to ensure that Docker

service does not start until the volume is mounted. Which of the following configurations needs to be added to the Docker service definition to best accomplish this task?

A.

After=docker-respository.mount

B.

ExecStart=/usr/bin/mount -a

C.

Requires=docker-repository.mount

D.

RequiresMountsFor=docker-repository.mount

Question # 142

Which of the following concepts describes the approach of keeping all configurations in a repository?

A.

Inventory

B.

Infrastructure as Code

C.

Orchestration

D.

Agentless deployment

Question # 143

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

Question # 144

A systems administrator is creating new user accounts on several Linux machines and wants to automate the process from a Linux system used for operations. In this operations system, the list of servers is located in the /home/user/serverslist file and the list of user accounts is located in the /home/user/userslist file. Which of the following scripts will help accomplish this task?

A.

bashfor server in $(cat /home/user/serverslist) do for user in $(cat /home/user/userslist) do sudo useradd $user done done

B.

bashfor server in $(cat /home/user/serverslist) do ssh -i user@$server " for user in $(cat /home/user/userslist) do sudo useradd $user done; exit " done

C.

bashfor server in $(cat /home/user/serverslist) do scp /home/user/userslist user@$server:/tmp ssh -i user@$server " for user in $(cat /tmp/userslist) do sudo useradd $user done; exit " done

D.

bashssh user@$(cat /home/user/serverslist) " sudo useradd $(cat /home/user/userslist); exit "

Question # 145

A systems administrator is trying to track down a rogue process that has a TCP listener on a network interface for remote command-and-control instructions.

Which of the following commands should the systems administrator use to generate a list of rogue process names? (Select two).

A.

netstat -antp | grep LISTEN

B.

lsof -iTCP | grep LISTEN

C.

lsof -i:22 | grep TCP

D.

netstat -a | grep TCP

E.

nmap -p1-65535 | grep -i tcp

F.

nmap -sS 0.0.0.0/0

Go to page: