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

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)
$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 Linux administrator needs to analyze a failing application that is running inside a container. Which of the following commands allows the Linux administrator to enter the running container and analyze the logs that are stored inside?

Options:

A.  

docker run -ti app /bin/sh

B.  

podman exec -ti app /bin/sh

C.  

podman run -d app /bin/bash

D.  

docker exec -d app /bin/bash

Discussion 0
Question # 2

A systems administrator pressed Ctrl+Z after starting a program using the command line, and the shell prompt was presented. In order to go back to the program, which of the following commands can the administrator use?

Options:

A.  

fg

B.  

su

C.  

bg

D.  

ed

Discussion 0
Question # 3

An administrator attempts to connect to a remote server by running the following command:

$ nmap 192.168.10.36

Starting Nmap 7.60 ( https://nmap.org ) at 2022-03-29 20:20 UTC

Nmap scan report for www1 (192.168.10.36)

Host is up (0.000091s latency).

Not shown: 979 closed ports

PORT STATE SERVICE

21/tcp open ftp

22/tcp filtered ssh

631/tcp open ipp

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds

Which of the following can be said about the remote server?

Options:

A.  

A firewall is blocking access to the SSH server.

B.  

The SSH server is not running on the remote server.

C.  

The remote SSH server is using SSH protocol version 1.

D.  

The SSH host key on the remote server has expired.

Discussion 0
Question # 4

A Linux systems administrator is configuring a new filesystem that needs the capability to be mounted persistently across reboots. Which of the following commands will accomplish this task? (Choose two.)

Options:

A.  

df -h /data

B.  

mkfs.ext4 /dev/sdc1

C.  

fsck /dev/sdc1

D.  

fdisk -l /dev/sdc1

E.  

echo "/data /dev/sdc1 ext4 defaults 0 0" >> /etc/fstab

F.  

echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab

Discussion 0
Question # 5

A Linux administrator is installing a web server and needs to check whether web traffic has already been allowed through the firewall. Which of the following commands should the administrator use to accomplish this task?

Options:

A.  

firewalld query-service-http

B.  

firewall-cmd --check-service http

C.  

firewall-cmd --query-service http

D.  

firewalld --check-service http

Discussion 0
Question # 6

An administrator would like to securely connect to a server and forward port 8080 on a local machine to port 80 on the server. Which of the following commands should the administrator use to satisfy both requirements?

Options:

A.  

ssh —L 8080: localhost:80 admin@server

B.  

ssh —R 8080: localhost:80 admin@server

C.  

ssh —L 80 : localhost:8080 admin@server

D.  

ssh —R 80 : localhost:8080 admin@server

Discussion 0
Question # 7

Ann, a security administrator, is performing home directory audits on a Linux server. Ann issues the su Joe command and then issues the Is command. The

output displays files that reside in Ann's home directory instead of Joe's. Which of the following represents the command Ann should have issued in order to list Joe's files?

Options:

A.  

su - Joe

B.  

sudo Joe

C.  

visudo Joe

D.  

pkexec joe

Discussion 0
Question # 8

Developers have requested implementation of a persistent, static route on the application server. Packets sent over the interface eth0 to 10.0.213.5/32 should be routed via 10.0.5.1. Which of the following commands should the administrator run to achieve this goal?

Options:

A.  

route -i etho -p add 10.0.213.5 10.0.5.1

B.  

route modify eth0 +ipv4.routes "10.0.213.5/32 10.0.5.1"

C.  

echo "10.0.213.5 10.0.5.1 eth0" > /proc/net/route

D.  

ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0

Discussion 0
Question # 9

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 # 10

An administrator thinks that a package was installed using a snap. Which of the following commands can the administrator use to verify this information?

Options:

A.  

snap list

B.  

snap find

C.  

snap install

D.  

snap try

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

Free Exams Sample Questions