New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Pass the CompTIA Linux+ XK0-005 Questions and answers with CertsForce

Viewing page 3 out of 15 pages
Viewing questions 21-30 out of questions
Questions # 21:

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?

Options:

A.

$RHOST


B.

SETENV


C.

$SHELL


D.

$DISPLAY


Expert Solution
Questions # 22:

A Linux administrator is troubleshooting a memory-related issue. Based on the output of the commands:

Which of the following commands would address the issue?

Options:

A.

top -p 8321


B.

kill -9 8321


C.

renice -10 8321


D.

free 8321


Expert Solution
Questions # 23:

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


Expert Solution
Questions # 24:

An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct

version of this file?

Options:

A.

rpm -qa | grep kernel; uname -a


B.

yum -y update; shutdown -r now


C.

cat /etc/centos-release; rpm -Uvh --nodeps


D.

telinit 1; restorecon -Rv /boot


Expert Solution
Questions # 25:

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


Expert Solution
Questions # 26:

A DevOps engineer needs to download a Git repository from https://git.company.com/admin/project.git. Which of the following commands will achieve this goal?

Options:

A.

git clone https://git.company.com/admin/project.git


B.

git checkout https://git.company.com/admin/project.git


C.

git pull https://git.company.com/admin/project.git


D.

git branch https://git.company.com/admin/project.git


Expert Solution
Questions # 27:

A Linux administrator was tasked with deleting all files and directories with names that are contained in the sobelete.txt file. Which of the following commands will accomplish this task?

Options:

A.

xargs -f cat toDelete.txt -rm


B.

rm -d -r -f toDelete.txt


C.

cat toDelete.txt | rm -frd


D.

cat toDelete.txt | xargs rm -rf


Expert Solution
Questions # 28:

Users report that connections to a MariaDB service are being closed unexpectedly. A systems administrator troubleshoots the issue and finds the following message in /var/log/messages:

Which of the following is causing the connection issue?

Options:

A.

The process mysqld is using too many semaphores.


B.

The server is running out of file descriptors.


C.

Something is starving the server resources.


D.

The amount of RAM allocated to the server is too high.


Expert Solution
Questions # 29:

A systems administrator created a web server for the company and is required to add a tag for the API so end users can connect. Which of the following would the administrator do to complete this requirement?

Options:

A.

hostnamectl status --no-ask-password


B.

hostnamectl set-hostname "$(perl -le "print" "A" x 86)"


C.

hostnamectl set-hostname Comptia-WebNode -H root@192.168.2.14


D.

hostnamectl set-hostname Comptia-WebNode --transient


Expert Solution
Questions # 30:

An administrator deployed a Linux server that is running a web application on port 6379/tcp.

SELinux is in enforcing mode based on organization policies.

The port is open on the firewall.

Users who are trying to connect to a local instance of the web application receive Error 13, Permission denied.

The administrator ran some commands that resulted in the following output:

Question # 30

Which of the following commands should be used to resolve the issue?

Options:

A.

semanage port -d -t http_port_t -p tcp 6379


B.

semanage port -a -t http_port_t -p tcp 6379


C.

semanage port -a http_port_t -p top 6379


D.

semanage port -l -t http_port_tcp 6379


Expert Solution
Viewing page 3 out of 15 pages
Viewing questions 21-30 out of questions