CompTIA Linux+ v1.0

Page:    1 / 18   
Exam contains 257 questions

A systems administrator is tasked with preventing logins from accounts other than root, while the file /etc/nologin exists. Which of the following PAM modules will accomplish this task?

  • A. pam_login.so
  • B. pam_access.so
  • C. pam_logindef.so
  • D. pam_nologin.so


Answer : D

A systems administrator has been tasked with disabling the nginx service from the environment to prevent it from being automatically and manually started. Which of the following commands will accomplish this task?

  • A. systemctl cancel nginx
  • B. systemctl disable nginx
  • C. systemctl mask nginx
  • D. systemctl stop nginx


Answer : C

A Linux administrator is troubleshooting an issue in which an application service failed to start on a Linux server. The administrator runs a few commands and gets the following outputs:

Based on the above outputs, which of the following is the MOST likely action the administrator should take to resolve this issue?

  • A. Enable the logsearch.service and restart the service.
  • B. Increase the TimeoutStartUSec configuration for the logsearch.sevice.
  • C. Update the OnCalendar configuration to schedule the start of the logsearch.service.
  • D. Update the KillSignal configuration for the logsearch.service to use TERM.


Answer : B

A Linux administrator has installed a web server, a database server, and a web application on a server. The web application should be active in order to render the web pages. After the administrator restarts the server, the website displays the following message in the browser: Error establishing a database connection. The Linux administrator reviews the following relevant output from the systemd init files:

The administrator needs to ensure that the database is available before the web application is started. Which of the following should the administrator add to the HTTP server .service file to accomplish this task?

  • A. TRIGGERS=mariadb.service
  • B. ONFAILURE=mariadb.service
  • C. WANTEDBY=mariadb.service
  • D. REQUIRES=mariadb.service


Answer : D

Several users reported that they were unable to write data to the /oracle1 directory. The following output has been provided:

Which of the following commands should the administrator use to diagnose the issue?

  • A. df -i /oracle1
  • B. fdisk -1 /dev/sdb1
  • C. lsblk /dev/sdb1
  • D. du -sh /oracle1


Answer : A

After installing some RPM packages, a systems administrator discovers the last package that was installed was not needed. Which of the following commands can be used to remove the package?

  • A. dnf remove packagename
  • B. apt-get remove packagename
  • C. rpm -i packagename
  • D. apt remove packagename


Answer : A

A systems administrator is checking the system logs. The administrator wants to look at the last 20 lines of a log. Which of the following will execute the command?

  • A. tail -v 20
  • B. tail -n 20
  • C. tail -c 20
  • D. tail -l 20


Answer : B

An administrator is trying to diagnose a performance issue and is reviewing the following output:

System Properties:

CPU: 4 vCPU -

Memory: 40GB -

Disk maximum IOPS: 690 -
Disk maximum throughput: 44Mbps | 44000Kbps
Based on the above output, which of the following BEST describes the root cause?

  • A. The system has reached its maximum IOPS, causing the system to be slow.
  • B. The system has reached its maximum permitted throughput, therefore iowait is increasing.
  • C. The system is mostly idle, therefore the iowait is high.
  • D. The system has a partitioned disk, which causes the IOPS to be doubled.


Answer : B

A systems administrator wants to test the route between IP address 10.0.2.15 and IP address 192.168.1.40. Which of the following commands will accomplish this task?

  • A. route -e get to 192.168.1.40 from 10.0.2.15
  • B. ip route get 192.163.1.40 from 10.0.2.15
  • C. ip route 192.169.1.40 to 10.0.2.15
  • D. route -n 192.168.1.40 from 10.0.2.15


Answer : B

A Linux administrator was tasked with deleting all files and directories with names that are contained in the sobelete.txt file. Which of the following commands will accomplish this task?

  • A. xargs -f cat toDelete.txt -rm
  • B. rm -d -r -f toDelete.txt
  • C. cat toDelete.txt | rm -frd
  • D. cat toDelete.txt | xargs rm -rf


Answer : B

A Linux administrator is troubleshooting the root cause of a high CPU load and average.

Which of the following commands will permanently resolve the issue?

  • A. renice -n -20 6295
  • B. pstree -p 6295
  • C. iostat -cy 1 5
  • D. kill -9 6295


Answer : A

A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve this goal?

  • A. chmod 4744 dev_team.txt
  • B. chmod 744 --setuid dev_team.txt
  • C. chmod -c 744 dev_team.txt
  • D. chmod -v 4744 --suid dev_team.txt


Answer : A

A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following output was received:

Which of the following commands can be used to resolve this issue?

  • A. chgrp -R 755 data/
  • B. chmod -R 777 data/
  • C. chattr -R -i data/
  • D. chown -R data/


Answer : C

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?

  • A. docker image load java:7
  • B. docker image pull java:7
  • C. docker image import java:7
  • D. docker image build java:7


Answer : B

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

  • A. Cloud-init
  • B. Bash
  • C. Docker
  • D. Sidecar


Answer : A

Page:    1 / 18   
Exam contains 257 questions

Talk to us!


Have any questions or issues ? Please dont hesitate to contact us

Certlibrary.com is owned by MBS Tech Limited: Room 1905 Nam Wo Hong Building, 148 Wing Lok Street, Sheung Wan, Hong Kong. Company registration number: 2310926
Certlibrary doesn't offer Real Microsoft Exam Questions. Certlibrary Materials do not contain actual questions and answers from Cisco's Certification Exams.
CFA Institute does not endorse, promote or warrant the accuracy or quality of Certlibrary. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.
Terms & Conditions | Privacy Policy