Weekend Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65pass65

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 day ago
Total Questions : 362

CompTIA Linux+ Exam is stable now with all latest exam questions are added 1 day 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)
$42
$119.99

XK0-005 Testing Engine

XK0-005 PDF (Printable)
$49
$139.99

XK0-005 PDF + Testing Engine

XK0-005 PDF (Printable)
$61.95
$176.99
Question # 1

A systems administrator is tasked with preventing logins from accounts other than root, while the file /etc/nologin exists. Which of the following PAM modules will accomplish this task?

Options:

A.  

pam_login.so

B.  

pam_access.so

C.  

pam_logindef.so

D.  

pam_nologin.so

Discussion 0
Question # 2

A Linux administrator wants to find out whether files from the wget package have been altered since they were installed. Which of the following commands will provide the correct information?

Options:

A.  

rpm -i wget

B.  

rpm -qf wget

C.  

rpm -F wget

D.  

rpm -V wget

Discussion 0
Question # 3

A systems administrator wants to test the route between IP address 10.0.2.15 and IP address 192.168.1.40. Which of the following commands will accomplish this task?

Options:

A.  

route -e get to 192.168.1.40 from 10.0.2.15

B.  

ip route get 192.163.1.40 from 10.0.2.15

C.  

ip route 192.169.1.40 to 10.0.2.15

D.  

route -n 192.168.1.40 from 10.0.2.15

Discussion 0
Question # 4

A Linux administrator needs to run a web application on a server that requires the use of a desktop web browser to enter the final configuration information. The administrator determines the server is running in multi-user mode. The administrator verifies that a web browser is installed on the server and that it has a display manager installed. Which of the following commands will best allow the administrator to temporarily use the web browser on the server?

Options:

A.  

sudo systemctl isolate graphical.target

B.  

sudo systemctl set-default runlevel5.target

C.  

sudo systemctl restart gdm

D.  

sudo systemctl --no-wall rescue

Discussion 0
Question # 5

A Linux engineer finds multiple failed login entries in the security log file for application users. The Linux engineer performs a security audit and discovers a security issue. Given the following:

# grep -iE '*www*|db' /etc/passwd

www-data:x:502:502:www-data:/var/www:/bin/bash

db:x: 505:505:db: /opt/db:/bin/bash

Which of the following commands would resolve the security issue?

Options:

A.  

usermod -d /srv/www-data www-data && usermod -d /var/lib/db db

B.  

passwd -u www-data && passwd -u db

C.  

renice -n 1002 -u 502 && renice -n 1005 -u 505

D.  

chsh -s /bin/false www-data && chsh -s /bin/false db

Discussion 0
Question # 6

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?

Options:

A.  

docker rm -- all

B.  

docker rm $ (docker ps -aq)

C.  

docker images prune *

D.  

docker rm -- state exited

Discussion 0
Question # 7

A user (userA) has reported issues while logging in to the system. The following output has been provided:

bash

Could not chdir to home directory /home/userA: Permission denied

-bash: /home/userA/.bash_profile: Permission denied

# cat /etc/passwd | grep userA

userA:x:1234:3400:userA account:/home/userA/:/bin/bash

# passwd -S userA

userA PS 2022-10-17 1 99999 0 (Password set. SHA512 crypt.)

# groups userA

admin dev usergrp

# ls -lth /home/

drwx------ 7 root admin 9 Jan 17 2019 userA

drwxr-xr-x 4 userC app 9 Jan 23 2020 userC

Which of the following describes the issue userA is having?

Options:

A.  

The password for userA is not set

B.  

The group for userA is not assigned correctly

C.  

The account password for userA has expired

D.  

The assigned home directory is not owned by userA

Discussion 0
Question # 8

A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve this goal?

Options:

A.  

chmod 4744 dev_team.txt

B.  

chmod 744 --setuid dev_team.txt

C.  

chmod -c 744 dev_team.txt

D.  

chmod -v 4744 --suid dev_team.txt

Discussion 0
Question # 9

A systems administrator intends to use a UI-JID to mount a new partition per-manently on a Linux system. Which of the following commands can the adminis-trator run to obtain information about the UUlDs of all disks attached to a Linux system?

Options:

A.  

fcstat

B.  

blkid

C.  

dmsetup

D.  

Isscsi

Discussion 0
Question # 10

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:

Question # 10

Which of the following commands will improve the latency issue?

Options:

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

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

Free Exams Sample Questions