Exam Details

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

CompTIA CompTIA Certifications XK0-005 Questions & Answers

  • Question 211:

    A new application container was built with an incorrect version number. Which of the following commands should be used to rename the image to match the correct version 2.1.2?

    A. docker tag comptia/app:2.1.1 comptia/app:2.1.2

    B. docker push comptia/app:2.1.1 comptia/app:2.1.2

    C. docker rmi comptia/app:2.1.1 comptia/app:2.1.2

    D. docker update comptia/app:2.1.1 comptia/app:2.1.2

  • Question 212:

    A systems administrator is troubleshooting connectivity issues and trying to find out why a Linux server is not able to reach other servers on the same subnet it is connected to. When listing link parameters, the following is presented:

    Based on the output above, which of following is the MOST probable cause of the issue?

    A. The address ac:00:11:22:33:cd is not a valid Ethernet address.

    B. The Ethernet broadcast address should be ac:00:11:22:33:ff instead.

    C. The network interface eth0 is using an old kernel module.

    D. The network interface cable is not connected to a switch.

  • Question 213:

    A Linux administrator is scheduling a system job that runs a script to check available disk space every hour. The Linux administrator does not want users to be able to start the job. Given the following:

    The Linux administrator attempts to start the timer service but receives the following error message:

    Which of the following is MOST likely the reason the timer will not start?

    A. The checkdiskspace.timer unit should be enabled via systemct1.

    B. The timers.target should be reloaded to get the new configuration.

    C. The checkdiskspace.timer should be configured to allow manual starts.

    D. The checkdiskspace.timer should be started using the sudo command.

  • Question 214:

    A cloud engineer wants to delete all unused networks that are not referenced by any container. Which of the following commands will achieve this goal?

    A. docker network erase

    B. docker network clear

    C. docker network prune

    D. docker network rm

  • Question 215:

    A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr--r--. ?

    A. chmod 755 filename.log

    B. chmod 640 filename.log

    C. chmod 740 filename.log

    D. chmod 744 filename.log

  • Question 216:

    Which of the following will prevent non-root SSH access to a Linux server?

    A. Creating the /etc/nologin file

    B. Creating the /etc/nologin.allow file containing only a single line root

    C. Creating the /etc/nologin/login.deny file containing a single line +all

    D. Ensuring that /etc/pam.d/sshd includes account sufficient pam_nologin.so

  • Question 217:

    Joe, a user, is unable to log in to the Linux system. Given the following output:

    Which of the following commands would resolve the issue?

    A. usermod -s /bin/bash joe

    B. pam_tally2 -u joe -r

    C. passwd -u joe

    D. chage -E 90 joe

  • Question 218:

    A Linux administrator booted up the server and was presented with a non-GUI terminal. The administrator ran the command systemct1 isolate graphical.target and rebooted the system by running systemct1 reboot, which fixed the issue. However, the next day the administrator was presented again with a non-GUI terminal. Which of the following is the issue?

    A. The administrator did not reboot the server properly.

    B. The administrator did not set the default target to basic.target.

    C. The administrator did not set the default target to graphical.target.

    D. The administrator did not shut down the server properly.

  • Question 219:

    A systems administrator is working on a security report from the Linux servers. Which of the following commands can the administrator use to display all the firewall rules applied to the Linux servers? (Select two).

    A. ufw limit

    B. iptables --F

    C. systemct1 status firewalld

    D. firewall--cmd ----1ist--a11

    E. ufw status

    F. iptables --A

  • Question 220:

    After installing a new version of a package, a systems administrator notices a new version of the corresponding, service file was Installed In order to use the new version of the, service file, which of the following commands must be Issued FIRST?

    A. systemct1 status

    B. systemct1 stop

    C. systemct1 reinstall

    D. systemct1 daemon-reload

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.