Weekend Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

CompTIA XK0-005 Actual Questions

Page: 4 / 35
Total 470 questions

CompTIA Linux+ Exam Questions and Answers

Question 13

As part of the requirements for installing a new application, the swappiness parameter needs to be changed to O. This change needs to persist across re-boots and be applied immediately. A Linux systems administrator is performing this change. Which of the following steps should the administrator complete to accomplish this task?

Options:

A.

echo "vm. swappiness—()" >> /etc/sysctl . conf && sysctl —p

B.

echo "vrn. >> / proc/meminfo && sysctl —a

C.

sysctl —v >> / proc/meminfo & & echo "vm. swapiness=0"

D.

sysctl —h "vm. swapiness—O" && echo / etc/vmswapiness

Question 14

A systems administrator needs to check the size of the filesystem on the current application servers and ensure that the following filesystems are mounted:

    /var

    /var/log/audit

    /tmp

    /home/application

Which of the following commands should the administrator use for these tasks?

Options:

A.

fdisk

B.

df

C.

du

D.

lsblk

Question 15

An administrator wants to copy files from /opt/tools to the home directory at /home/admin. Which of the following should the administrator run?

Options:

A.

mkdir -p /home/admin/tools

B.

cp -R /opt/tools ~

C.

cd /opt/tools; rsync /home/admin

D.

scp /opt/tools localhost:/

Question 16

A network administrator issues the dig ww. comptia. org command and receives an NXDOMAIN response. Which of the following files should the administrator check first?

Options:

A.

/etc/resolv.conf

B.

/etc/hosts

C.

/etc/sysconfig/network-scripts

D.

/etc/nsswitch.conf

Page: 4 / 35
Total 470 questions