Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+ Certification Exam
  • Certification
    :Linux+
  • Vendor
    :CompTIA
  • Total Questions
    :285 Q&As
  • Last Updated
    :Apr 26, 2024

CompTIA Linux+ XK0-005 Questions & Answers

  • Question 1:

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

    Given the outputs above, which of the following is the reason the user is unable 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 is incorrect.

    D. The user1 password is expired.

  • Question 2:

    A junior administrator updated the PostgreSQL service unit file per the database administrator's recommendation. The service has been restarted, but changes have not been applied. Which of the following should the administrator run for the changes to take effect?

    A. systemctl get-default

    B. systemctl daemon-reload

    C. systemctl enable postgresql

    D. systemctl mask postgresql

  • Question 3:

    A senior Linux administrator has created several scripts that will be used to install common system applications. These scripts are published to a repository to share with the systems team. A junior Linux administrator needs to retrieve the scripts and make them available on a local workstation. Which of the following Git commands should the junior Linux administrator use to accomplish this task?

    A. fetch

    B. checkout

    C. clone

    D. branch

  • Question 4:

    Users are reporting that writes on a system configured with SSD drives have been taking longer than expected, but reads do not seem to be affected. A Linux systems administrator is investigating this issue and working on a solution. Which of the following should the administrator do to help solve the issue?

    A. Run the corresponding command to trim the SSD drives.

    B. Use fsck on the filesystem hosted on the SSD drives.

    C. Migrate to high-density SSD drives for increased performance.

    D. Reduce the amount of files on the SSD drives.

  • Question 5:

    A systems administrator made some changes in the ~/.bashrc file and added an alias command. When the administrator tried to use the alias command, it did not work. Which of the following should be executed FIRST?

    A. source ~/.bashrc

    B. read ~/.bashrc

    C. touch ~/.bashrc

    D. echo ~/.bashrc

  • Question 6:

    An administrator installed an application from source into /opt/operations1/ and has received numerous reports that users are not able to access the application without having to use the full path /opt/operations1/bin/*. Which of the following commands should be used to resolve this issue?

    A. echo 'export PATH=$PATH:/opt/operations1/bin' >> /etc/profile

    B. echo 'export PATH=/opt/operations1/bin' >> /etc/profile

    C. echo 'export PATH=$PATH/opt/operations1/bin' >> /etc/profile

    D. echo 'export $PATH:/opt/operations1/bin' >> /etc/profile

  • Question 7:

    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?

    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.

  • Question 8:

    A Linux administrator needs to create a new cloud.cpio archive containing all the files from the current directory. Which of the following commands can help to accomplish this task?

    A. ls | cpio -iv > cloud.epio

    B. ls | cpio -iv < cloud.epio

    C. ls | cpio -ov > cloud.cpio

    D. ls cpio -ov < cloud.cpio

  • Question 9:

    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

  • Question 10:

    Which of the following files holds the system configuration for journal when running systemd?

    A. /etc/systemd/journald.conf

    B. /etc/systemd/systemd-journalctl.conf

    C. /usr/lib/systemd/journalctl.conf

    D. /etc/systemd/systemd-journald.conf

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only CompTIA exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your XK0-005 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.