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 8 out of 15 pages
Viewing questions 71-80 out of questions
Questions # 71:

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


Expert Solution
Questions # 72:

A Linux administrator needs to create an image named sda.img from the sda disk and store it in the /tmp directory. Which of the following commands should be used to accomplish this task?

Options:

A.

dd of=/dev/sda if=/tmp/sda.img


B.

dd if=/dev/sda of=/tmp/sda.img


C.

dd --if=/dev/sda --of=/tmp/sda.img


D.

dd --of=/dev/sda --if=/tmp/sda.img


Expert Solution
Questions # 73:

A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently only Java 8 is available. Which of the following commands should the administrator run to ensure both versions are available?

Options:

A.

docker image load java:7


B.

docker image pull java:7


C.

docker image import java:7


D.

docker image build java:7


Expert Solution
Questions # 74:

Junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache.

INSTRUCTIONS

Install Apache and start the service. Verify that the Apache service is running with the defaults.

Typing “help” in the terminal will show a list of relevant event commands.

If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.


Expert Solution
Questions # 75:

To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?

Options:

A.

Add the line DenyUsers root to the /etc/hosts.deny file.


B.

Set PermitRootLogin to no in the /etc/ssh/sshd_config file.


C.

Add the line account required pam_nologin. so to the /etc/pam.d/sshd file.


D.

Set PubKeyAuthentication to no in the /etc/ssh/ssh_config file.


Expert Solution
Questions # 76:

A Linux engineer is setting the sticky bit on a directory called devops with 755 file permission. Which of the following commands will accomplish this task?

Options:

A.

chown -s 755 devops


B.

chown 1755 devops


C.

chmod -s 755 devops


D.

chmod 1755 devops


Expert Solution
Questions # 77:

A Linux administrator was asked to run a container with the httpd server inside. This container should be exposed at port 443 of a Linux host machine while it internally listens on port 8443. Which of the following commands will accomplish this task?

Options:

A.

podman run -d -p 443:8443 httpd


B.

podman run -d -p 8443:443 httpd


C.

podman run –d -e 443:8443 httpd


D.

podman exec -p 8443:443 httpd


Expert Solution
Questions # 78:

Which of the following tools is commonly used for creating CI/CD pipelines?

Options:

A.

Chef


B.

Puppet


C.

Jenkins


D.

Ansible


Expert Solution
Questions # 79:

A Linux administrator needs to create a new cloud.cpio archive containing all the files from the current directory. Which of the following commands can help to accomplish this task?

Options:

A.

ls | cpio -iv > cloud.epio


B.

ls | cpio -iv < cloud.epio


C.

ls | cpio -ov > cloud.cpio


D.

ls cpio -ov < cloud.cpio


Expert Solution
Questions # 80:

A Linux system is failing to boot with the following error:

Which of the following actions will resolve this issue? (Choose two.)

Options:

A.

Execute grub-install --root-directory=/mnt and reboot.


B.

Execute grub-install /dev/sdX and reboot.


C.

Interrupt the boot process in the GRUB menu and add rescue to the kernel line.


D.

Fix the partition modifying /etc/default/grub and reboot.


E.

Interrupt the boot process in the GRUB menu and add single to the kernel line.


F.

Boot the system on a LiveCD/ISO.


Expert Solution
Viewing page 8 out of 15 pages
Viewing questions 71-80 out of questions