Exit demo XK0-005 CompTIA Linux+ PDF format · free preview

CompTIA XK0-005 - Questions & Answers

Free preview · every answer includes a full explanation

Product page: https://prepkeys.com/xk0-005.html

Question 1
Single choice

A Linux administrator was notified that a virtual server has an I/O bottleneck. The Linux administrator analyzes the following output:

Given there is a single CPU in the sever, which of the following is causing the slowness?

A.

The system is running out of swap space.

B.

The CPU is overloaded.

C.

The memory is exhausted.

D.

The processes are paging.

Question 2
Single choice

A Linux administrator intends to start using KVM on a Linux server.

Which of the following commands will allow the administrator to load the KVM module as well as any related dependencies?

A.

modprobe kvm

B.

insmod kvm

C.

depmod kvm

D.

hotplug kvm

Question 3
Single choice

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?

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/

Question 4
Single choice

A Linux administrator needs to remove software from the server.

Which of the following RPM options should be used?

A.

rpm -s

B.

rm -d

C.

rpm -q

D.

rpm -e

Question 5
Single choice

A Linux user is trying to execute commands with sudo but is receiving the following error:

$ sudo visudo

>>> /etc/sudoers: syntax error near line 28 <<<

sudo: parse error in /etc/sudoers near line 28

sudo: no valid sudoers sources found, quitting

The following output is provided:

# grep root /etc/shadow

root :* LOCK *: 14600 ::::::

Which of the following actions will resolve this issue?

A.

Log in directly using the root account and comment out line 28 from /etc/sudoers.

B.

Boot the system in single user mode and comment out line 28 from /etc/sudoers.

C.

Comment out line 28 from /etc/sudoers and try to use sudo again.

D.

Log in to the system using the other regular user, switch to root, and comment out line 28 from /etc/ sudoers.

Question 6
Single choice

A Linux administrator needs to obtain a list of all volumes that are part of a volume group.

Which of the following commands should the administrator use to accomplish this task?

A.

vgs

B.

lvs

C.

fdisk -1

D.

pvs

Question 7
Single choice

A systems administrator received a notification that a system is performing slowly. When running the top command, the systems administrator can see the following values:

Which of the following commands will the administrator most likely run NEXT?

A.

vmstat

B.

strace

C.

htop

D.

lsof

Question 8
Single choice

The administrator comptia is not able to perform privileged functions on a newly deployed system. Given the following command outputs:

Which of the following is the reason that the administrator is unable to perform the assigned duties?

A.

The administrator needs a password reset.

B.

The administrator is not a part of the correct group.

C.

The administrator did not update the sudo database.

D.

The administrator's credentials need to be more complex.

Question 9
Single choice

A user reported issues when trying to log in to a Linux server. The following outputs were received:

Given the outputs above.
which of the following is the reason the user is una-ble to log in to the server?

A.

User1 needs to set a long password.

B.

User1 is in the incorrect group.

C.

The user1 shell assignment incorrect.

D.

The user1 password is expired.

Question 10
Single choice

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?

A.

rpm -i wget

B.

rpm -qf wget

C.

rpm -F wget

D.

rpm -V wget

Showing 10 of 476 questions · Unlock the full set