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

    A systems administrator receives a report about performance issues in a Linux production system. Which of the following commands should the administrator use to help diagnose the performance issues?

    A. jobs
    B. renice
    C. top
    D. pkill

  • Question 432:

    A systems administrator is cloning a system partition /dev/sda1 to /dev/sdc1. Which of the following commands would allow the administrator to accomplish this task most efficiently?

    A. dd if=/dev/sda1 of=/dev/sdc1
    B. cat /dev/sda1 > /dev/sdc1
    C. cp -R /dev/sda1 /dev/sdc1
    D. rsync -av /dev/sda1 /dev/sdc1

  • Question 433:

    A Linux administrator logs into a system and identifies that an important backup has started. The backup process is consuming a considerable amount of CPU time but needs to continue. Which of the following should the administrator use to reduce the impact this process has on other services?

    A. renice -n 15 -p
    B. nice -n 15 -p
    C. renice -n -15 -p
    D. nice -n -15 -p

  • Question 434:

    A newly created container has been unable to start properly, and a Linux administrator is analyzing the cause of the failure. Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?

    A. docker export
    B. docker info
    C. docker start
    D. docker inspect

  • Question 435:

    A security team discovers that a web server has been running with elevated privileges and identifies it as a security violation. Which of the following items needs to be added to the webserver.service file to remediate the issue?

    A. In the [Service] section of the webserver.service file, add User=comptia.
    B. In the [Unit] section of the webserver.service file, add AllowIsolate=true.
    C. In the [Install] section of the webserver.service file, add WantedBy=single.target.
    D. Add After=network.target to the [Install] section of the webserver.service file.

  • Question 436:

    A Linux administrator is troubleshooting SSH connection issues from one of the workstations.

    When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message:

    The administrator reviews the information below:

    Which of the following is causing the connectivity issue?

    A. The workstation has the wrong IP settings.
    B. The sshd service is disabled.
    C. The server's firewall is preventing connections from being made.
    D. The server has an incorrect default gateway configuration.

  • Question 437:

    A Linux user is trying to execute commands with sudo but is receiving the following error:

    $ sudo visudo

    >>> /etc/sudoers: syntax error near line 28 <<<

    sudo: parse error in /etc/sudoers near line 28

    sudo: no valid sudoers sources found, quitting

    The following output is provided:

    # grep root /etc/shadow

    root :* LOCK *: 14600 ::::::

    Which of the following actions will resolve this issue?

    A. Log in directly using the root account and comment out line 28 from /etc/sudoers.
    B. Boot the system in single user mode and comment out line 28 from /etc/sudoers.
    C. Comment out line 28 from /etc/sudoers and try to use sudo again.
    D. Log in to the system using the other regular user, switch to root, and comment out line 28 from /etc/sudoers.

  • Question 438:

    A systems administrator needs to compress log files using the .tar.bz2 format. Which of the following commands should the administrator use?

    A. tar -cvtf logs.car.bz2 /var/log/*
    B. tar -cvzf logs.tar.bz2 /var/log/*
    C. tar -cvjf logs.tar.bz2 /var/log/*
    D. tar -cvbf logs.tar.bz2 /var/log/*

  • Question 439:

    Users report issues when trying to securely connect to a web server. The systems administrator receives the following outputs:

    firewall-cmd --list-all

    # (Only ports for ssh, cockpit, dhcp-client are listed.)

    netstat -an | grep LISTEN

    tcp 0 0 0.0.0.0:443 ... LISTEN

    Which of the following actions will fix this issue?

    A. Restarting the firewall service
    B. Starting the web application
    C. Restarting the web application
    D. Opening firewall port 443

  • Question 440:

    A user sends a request to access a virtual server via SSH. Which of the following commands is used to open the SSH standard port?

    A. firewalld-cmd --permanent --add-port=22/tcp
    B. iptables-save | grep dport-22/tcp
    C. iptables -A INPUT -p tcp --dport sshd -j ACCEPT
    D. firewalld-cmd --remove-service=ssh --permanent

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.