New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Linux+ XK0-004 Syllabus Exam Questions Answers

Page: 2 / 18
Total 483 questions

CompTIA Linux+ Certification Exam Questions and Answers

Question 5

A junior administrator of a physical server receives log messages indicating the out-of-memory killer has been active. All memory slots are in use on the motherboard, but additional disk space is available. Space has been allocated for a swap file.

Which of the following should the administrator use to reduce the output of memory messages?

Options:

A.

free : swapoff / swapfile ; swapon -a

B.

mkswap /swapfile; swapon –a

C.

fallocate –l 2G /swapfile && swapon –a

D.

echo “1” > /proc/meninfo ; swapon / swapfile

Question 6

A Linux administrator needs to remotely update the contents of the URL.

Which of the following commands would allow the administrator to download the current contents of the URL before updating?

Question 7

An engineer is working on a production application deployment that requires changing a web application property file called server.property that is managed by the Git version control system. A cloned copy of the remote repository in which the server.property file exists is on the local desktop computer. The engineer makes appropriate changes to the files, saves it as server.property, and executes git commit –m “changed the property file” server.property. Which of the following commands did the engineer fail to perform?

Options:

A.

git init server.property

B.

git merge server.property

C.

git add server.property

D.

git push server.property

Question 8

A systems administrator is configuring options on a newly installed Linux VM that will be deployed to the Pacific time zone. Which of the following sets of commands should the administrator execute to accurately configure the correct time settings?

Options:

A.

cd /etcln –s /usr/share/zoneinfo/US/Pacific localtime

B.

cd /usr/localln –s /usr/share/zoneinfo/US/Pacific zoneinfo

C.

cd /etc/localln –s /usr/share/zoneinfo/US/Pacific localtime

D.

cd /usr/share/localln –s /usr/share/zoneinfo/US/Pacific localectl

Page: 2 / 18
Total 483 questions