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 41:

    While inspecting a recently compromised Linux system, the administrator identified a number of processes that should not have been running:

    Which of the following commands should the administrator use to terminate all of the identified processes?

    A. pkill -9 -f "upload*.sh"

    B. kill -9 "upload*.sh"

    C. killall -9 -upload*.sh"

    D. skill -9 "upload*.sh"

  • Question 42:

    An engineer needs to insert a character at the end of the current line in the vi text editor. Which of the following will allow the engineer to complete this task?

    A. p

    B. r

    C. bb

    D. A E. i

  • Question 43:

    The group owner of the / home/ test directory would like to preserve all group permissions on files created in the directory. Which of the following commands should the group owner execute?

    A. chmod g+s /home/test

    B. chgrp test /home/test

    C. chmod 777 /home/test

    D. chown --hR test /home/test

  • Question 44:

    A Linux engineer needs to block an incoming connection from the IP address 2.2.2.2 to a secure shell server and ensure the originating IP address receives a response that a firewall is blocking the connection. Which of the following commands can be used to accomplish this task?

    A. iptables -A INPUT -p tcp -- dport ssh -s 2.2.2.2 -j DROP

    B. iptables -A INPUT -p tcp -- dport ssh -s 2.2.2.2 -j RETURN

    C. iptables -A INPUT -p tcp -- dport ssh -s 2.2.2.2 -j REJECT

    D. iptables -A INPUT -p tcp -- dport ssh -s 2.2.2.2 -j QUEUE

  • Question 45:

    A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?

    A. /etc/host.conf

    B. /etc/hostname

    C. /etc/services

    D. /etc/ssh/sshd_config

  • Question 46:

    A User on a Linux workstation needs to remotely start an application on a Linux server and then forward the graphical display of that application back to the Linux workstation. Which of the following would enable the user to perform this action?

    A. ssh -X user@server application

    B. ssh -y user@server application

    C. ssh user@server application

    D. ssh -D user@server application

  • Question 47:

    A systems administrator is gathering information about a file type and the contents of a file. Which of the following commands should the administrator use to accomplish this task?

    A. file filename

    B. touch filename

    C. grep filename

    D. lsof filename

  • Question 48:

    The development team wants to prevent a file from being modified by all users in a Linux system, including the root account. Which of the following commands can be used to accomplish this objective?

    A. chmod / app/conf/file

    B. setenforce / app/ conf/ file

    C. chattr +i /app/conf/file

    D. chmod 0000 /app/conf/file

  • Question 49:

    A Linux systems administrator is troubleshooting an I/O latency on a single CPU server. The administrator runs a top command and receives the following output:

    %Cpu(s): 0.2 us, 33.1 sy, 0.0 ni, 0.0 id, 52.4 wa, 0.0 hi, 0.2 si, 0.0 st

    Which of the following is correct based on the output received from the exe-cuted command?

    A. The server's CPU is taking too long to process users' requests.

    B. The server's CPU shows a high idle-time value.

    C. The server's CPU is spending too much time waiting for data inputs.

    D. The server's CPU value for the time spent on system processes is low.

  • Question 50:

    A systems administrator wants to be sure the sudo rules just added to /etc/sudoers are valid. Which of the following commands can be used for this task?

    A. visudo -c

    B. test -f /etc/sudoers

    C. sudo vi check

    D. cat /etc/sudoers | tee test

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.