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 Linux administrator needs to resolve a service that has failed to start. The administrator runs the following command:

The following output is returned

Question # 21

Which of the following is MOST likely the issue?

Options:

A.

The service does not have permissions to read write the startupfile.


B.

The service startupfile size cannot be 81k.


C.

The service startupfile cannot be owned by root.


D.

The service startupfile should not be owned by the root group.


Expert Solution
Questions # 22:

A newly created container has been unable to start properly, and a Linux administrator is analyzing the cause of the failure. Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?

Options:

A.

docker export


B.

docker info


C.

docker start


D.

docker inspect


Expert Solution
Questions # 23:

A new file was added to a main Git repository. An administrator wants to synchronize a local copy with the contents of the main repository. Which of the following commands should the administrator use for this task?

Options:

A.

git reflog


B.

git pull


C.

git status


D.

git push


Expert Solution
Questions # 24:

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 # 25:

A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding. Which of the following commands is the correct way to accomplish this task?

Options:

A.

echo 1 > /proc/sys/net/ipv4/ipv_forward


B.

sysctl -w net.ipv4.ip_forward=1


C.

firewall-cmd --enable ipv4_forwarding


D.

systemct1 start ipv4_forwarding


Expert Solution
Questions # 26:

A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers. Which of the following commands can be used to copy a key file to remote servers? (Choose two.)

Options:

A.

wget


B.

ssh-keygen


C.

ssh-keyscan


D.

ssh-copy-id


E.

ftpd


F.

scp


Expert Solution
Questions # 27:

A systems administrator requires that all files that are created by the user named web have read-only permissions by the owner. Which of the following commands will satisfy this requirement?

Options:

A.

chown web:web /home/web


B.

chmod -R 400 /home/web


C.

echo "umask 377" >> /home/web/.bashrc


D.

setfacl read /home/web


Expert Solution
Questions # 28:

A systems administrator wants to back up the directory /data and all its contents to /backup/data on a remote server named remote. Which of the following commands will achieve the desired effect?

Options:

A.

scp -p /data remote:/backup/data


B.

ssh -i /remote:/backup/ /data


C.

rsync -a /data remote:/backup/


D.

cp -r /data /remote/backup/


Expert Solution
Questions # 29:

A systems administrator is implementing a new service task with systems at startup and needs to execute a script entitled test.sh with the following content:

The administrator tries to run the script after making it executable with chmod +x; however, the script will not run. Which of the following should the administrator do to address this issue? (Choose two.)

Options:

A.

Add #!/bin/bash to the bottom of the script.


B.

Create a unit file for the new service in /etc/systemd/system/ with the name helpme.service in the location.


C.

Add #!//bin/bash to the top of the script.


D.

Restart the computer to enable the new service.


E.

Create a unit file for the new service in /etc/init.d with the name helpme.service in the location.


F.

Shut down the computer to enable the new service.


Expert Solution
Questions # 30:

A cloud engineer is installing packages during VM provisioning. Which of the following should the engineer use to accomplish this task?

Options:

A.

Cloud-init


B.

Bash


C.

Docker


D.

Sidecar


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