Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :396 Q&As
  • Last Updated
    :Mar 23, 2025

CompTIA CompTIA Certifications XK0-005 Questions & Answers

  • Question 251:

    Users have been unable to reach www.comptia.org from a Linux server. A systems administrator is troubleshooting the issue and does the following:

    Based on the information above, which of the following is causing the issue?

    A. The name www.comptia.org does not point to a valid IP address.

    B. The server 192.168.168.53 is unreachable.

    C. No default route is set on the server.

    D. The network interface eth0 is disconnected.

  • Question 252:

    A Linux administrator would like to use systemd to schedule a job to run every two hours. The administrator creates timer and service definitions and restarts the server to load these new configurations. After the restart, the administrator checks the log file and notices that the job is only running daily. Which of the following is MOST likely causing the issue?

    A. The checkdiskspace.service is not running.

    B. The checkdiskspace.service needs to be enabled.

    C. The OnCalendar schedule is incorrect in the timer definition.

    D. The system-daemon services need to be reloaded.

  • Question 253:

    An administrator attempts to rename a file on a server but receives the following error.

    The administrator then runs a few commands and obtains the following output:

    Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?

    A. chgrp reet files

    B. chacl -R 644 files

    C. chown users files

    D. chmod -t files

  • Question 254:

    A Linux engineer needs to create a custom script, cleanup.sh, to run at boot as part of the system services. Which of the following processes would accomplish this task?

    A. Create a unit file in the /etc/default/ directory. systemct1 enable cleanup systemct1 is-enabled cleanup

    B. Create a unit file in the /etc/ske1/ directory. systemct1 enable cleanup systemct1 is-enabled cleanup

    C. Create a unit file in the /etc/systemd/system/ directory. systemct1 enable cleanup systemct1 is-enabled cleanup

    D. Create a unit file in the /etc/sysctl.d/ directory. systemct1 enable cleanup systemct1 is-enabled cleanup

  • Question 255:

    A systems administrator created a new Docker image called test. After building the image, the administrator forgot to version the release. Which of the following will allow the administrator to assign the v1 version to the image?

    A. docker image save test test:v1

    B. docker image build test:vl

    C. docker image tag test test:vl

    D. docker image version test:v1

  • Question 256:

    A server is experiencing intermittent connection issues. Some connections to the Internet work as intended, but some fail as if there is no connectivity. The systems administrator inspects the server configuration: Which of the following is MOST likely the cause of the issue?

    A. An internal-only DNS server is configured.

    B. The IP netmask is wrong for ens3.

    C. Two default routes are configured.

    D. The ARP table contains incorrect entries.

  • Question 257:

    Which of the following should be used to verify the integrity of a file?

    A. sha256sum

    B. fsck

    C. gpg --d

    D. hashcat

  • Question 258:

    A junior administrator updated the PostgreSQL service unit file per the data-base 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. Systemct1 get--default

    B. systemct1 daemon--reload

    C. systemct1 enable postgresq1

    D. systemct1 mask postgresq1

  • Question 259:

    A Linux administrator created a new file system. Which of the following files must be updated to ensure the filesystem mounts at boot time?

    A. /etc/sysctl

    B. /etc/filesystems

    C. /etc/fstab

    D. /etc/nfsmount.conf

  • Question 260:

    When trying to log in remotely to a server, a user receives the following message:

    The server administrator is investigating the issue on the server and receives the following outputs:

    Which of the following is causing the issue?

    A. The wrong permissions are on the user's home directory.

    B. The account was locked out due to three failed logins.

    C. The user entered the wrong password.

    D. The user has the wrong shell assigned to the account.

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.