XK0-005 Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :476 Q&As
  • Last Updated
    :May 25, 2026

CompTIA XK0-005 Online Questions & Answers

  • Question 201:

    A Linux administrator is troubleshooting an issue in which users are not able to access https://portal.comptia.org from a specific workstation. The administrator runs a few commands and receives the following output:

    Which of the following tasks should the administrator perform to resolve this issue?

    A. Update the name server in resolv. conf to use an external DNS server.
    B. Remove the entry for portal . comptia.org from the local hosts file.
    C. Add a network route from the 10.10.10.0/24 to the 192.168.0.0/16.
    D. Clear the local DNS cache on the workstation and rerun the host command.

  • Question 202:

    A Linux administrator is configuring Apache on a system and needs to allow the service to start after every startup. Which of the following commands will allow the Linux administrator to accomplish this task while starting the service at the same time?

    A. systemctl mask --state=active httpd
    B. systemctl start --runtime boot httpd
    C. systemctl set-property restart httpd
    D. systemctl enable --now httpd

  • Question 203:

    An administrator would like to list all current containers, regardless of their running state. Which of the following commands would allow the administrator to accomplish this task?

    A. docker ps -a
    B. docker list
    C. docker image ls
    D. docker inspect image

  • Question 204:

    A Linux administrator attempts to log in to a server over SSH as root and receives the following error message: Permission denied, please try again. The administrator is able to log in to the console of the server directly with root and confirms the password is correct. The administrator reviews the configuration of the SSH service and gets the following output:

    Based on the above output, which of the following will most likely allow the administrator to log in over SSH to the server?

    A. Log out other user sessions because only one is allowed at a time.
    B. Enable PAM and configure the SSH module.
    C. Modify the SSH port to use 2222.
    D. Use a key to log in as root over SSH.

  • Question 205:

    A systems administrator is receiving complaints about slow performance and system crashes. The administrator suspects memory and CPU issues. Which of the following is the first action the administrator should take to troubleshoot and resolve these issues?

    A. Run resource monitoring tools like top or htop to view the current CPU and memory use.
    B. Look through the system logs and error messages to find any faults involving the CPU and memory.
    C. Remove and replace the CPU and memory components to address hardware issues.
    D. Reboot the server to clear any CPU and memory congestion.

  • Question 206:

    An administrator would like to mirror the website files on the primary web server, www1, to the backup web server, www2. Which of the following commands should the administrator use to most efficiently accomplish this task?

    A. [wwwl ] rsync --a --e ssh /var/www/html/ user1@www2 : /var/www/html
    B. [ wwwl ] scp --r /var/www/html user1@www2 : / var/www/html
    C. [www2 ] cd /var/www/html; wget --m http: //wwwl/
    D. [wwwl ] cd /var/www/html andand tar cvf -

  • Question 207:

    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.

  • Question 208:

    A cloud engineer needs to check the link status of a network interface named eth1 in a Linux server. Which of the following commands can help to achieve the goal?

    A. ifconfig hw eth1
    B. netstat -r eth1
    C. ss -ti eth1
    D. ip link show eth1

  • Question 209:

    A Linux administrator created a virtual clone of a physical server and would like to remove any existing entries related to SSH keys from outside entities on the virtual clone. Which of the following files should the administrator remove? (Select two).

    A. ~/.ssh/authorized_keys
    B. ~/.ssh/known_hosts
    C. /etc/ssh/ssh_config
    D. ~/.ssh/config
    E. /etc/ssh/sshd_config
    F. /etc/ssh/ssh_host_rsa_key.pub

  • Question 210:

    A junior systems administrator has just generated public and private authentication keys for passwordless login. Which of the following files will be moved to the remote servers?

    A. id_dsa.pem
    B. id_rsa
    C. id_ecdsa
    D. id_rsa.pub

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.