XK0-005 Exam Details

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

CompTIA XK0-005 Online Questions & Answers

  • Question 441:

    A diagnostic tool reports a "host seems down" event for a server with an IP address of 192.168.47.44. Which of the following commands should the administrator use to confirm the host down event?

    A. nmap 192.168.47.0/32
    B. netcat 192.168.47.44
    C. nmap 192.168.47.44 -Pn
    D. ping -c 1 192.168.47.44

  • Question 442:

    The security team has identified a web service that is running with elevated privileges A Linux administrator is working to change the systemd service file to meet security compliance standards. Given the following output:

    Which of the following remediation steps will prevent the web service from running as a privileged user?

    A. Removing the ExecStarWusr/sbin/webserver -D SOPTIONS from the service file
    B. Updating the Environment File line in the [Service] section to/home/webservice/config
    C. Adding the User-webservice to the [Service] section of the service file
    D. Changing the:nulti-user.target in the [Install] section to basic.target

  • Question 443:

    A systems administrator is troubleshooting a connectivity issue pertaining to access to a system named db.example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output:

    The administrator runs grep db.example.com /etc/hosts and receives the following output:

    Given this scenario, which of the following should the administrator do to address this issue?

    A. Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89.
    B. Modify the /etc/network file and change the db.example.com entry to 192.168.20.88.
    C. Modify the /etc/network file and change the db.example.com entry to 192.168.20.89.
    D. Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88.

  • Question 444:

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

    A Linux administrator would like to measure possible packet loss between a workstation and a remote web application that is running on port 443. Which of the following would be the best command for the administrator to use to display this information?

    A. ping -c 50
    B. tcpdump -p 443
    C. mtr -T -P 443
    D. traceroute -p 443

  • Question 446:

    A Linux systems administrator is resolving a privileged access issue for users who are members of an admin group.

    Which of the following configuration files should the administrator update so the users in the admin group will have root privileged access to the Linux system?

    A. /etc/sudoers
    B. /etc/login.defs
    C. /etc/group
    D. /etc/shadow

  • Question 447:

    When trying to connect from the bastion host to the remote server, a Linux user always forgets to add some required options in the SSH command line. Which of the following is the best way to permanently solve the user's issue?

    A. Write a connection script and put it in the user's home directory.
    B. Instruct the user to add the required options to the ~/.ssh/config file
    C. Add the required options to /etc/ssh/sshconfig
    D. Establish an alias for the SSH command with all the required options.

  • Question 448:

    A systems administrator is trying to track down a rogue process that has a TCP listener on a network interface for remote command-and-control instructions.

    Which of the following commands should the systems administrator use to generate a list of rogue process names? (Select two).

    A. netstat -antp | grep LISTEN
    B. lsof -iTCP | grep LISTEN
    C. lsof -i:22 | grep TCP
    D. netstat -a | grep TCP
    E. nmap -p1-65535 | grep -i tcp
    F. nmap -sS 0.0.0.0/0

  • Question 449:

    A systems administrator creates a public key for authentication. Which of the following tools is most suitable to use when uploading the key to the remote servers?

    A. scp
    B. ssh-copy-id
    C. ssh-agent
    D. ssh-keyscan

  • Question 450:

    A Linux administrator has logged in to a server for the first time and needs to know which services are allowed through the firewall. Which of the following options will return the results for which the administrator is looking?

    A. firewall-cmd --get-services
    B. firewall-cmd --check-config
    C. firewall-cmd --list-services
    D. systemct1 status firewalld

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.