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

    A systems administrator is adding a Linux-based server and removing a Windows-based server from a cloud-based environment. The changes need to be validated before they are applied to the cloud-based environment. Which of the following tools should be used to meet this requirement?

    A. Ansible
    B. git clone
    C. git pull
    D. terraform plan

  • Question 2:

    A systems administrator has been unable to terminate a process. Which of the following should the administrator use to forcibly stop the process?

    A. kill -1
    B. kill -3
    C. kill -15
    D. kill -HUP
    E. kill -TERM

  • Question 3:

    An administrator is reviewing the boot logs on a system that is having intermittent issues when trying to access certain directories and files. The following errors appear in dmesg:

    I/O error, dev sda1, sector 456788

    Buffer I/O error on device sda1, logical block 378994

    Which of the following actions should the administrator take to resolve the issue?

    A. Use dd to copy and reformat the disk
    B. Use gddrescue to copy the disk, edit /etc/fstab, replace the disk
    C. Use fsck /dev/sda1 in GRUB recovery
    D. Boot a recovery disk, run fsck on unmounted drive

  • Question 4:

    A Linux administrator has been tasked with installing the most recent versions of packages on a RPM-based OS. Which of the following commands will accomplish this task?

    A. apt-get upgrade
    B. rpm -a
    C. yum updateinfo
    D. dnf update
    E. yum check-update

  • Question 5:

    A systems administrator is tasked with creating an Ansible playbook to automate the installation of patches on several Linux systems. In which of the following languages should the playbook be written?

    A. SQL
    B. YAML
    C. HTML
    D. JSON

  • Question 6:

    A Linux systems administrator is setting up a new web server and getting 404 - NOT FOUND errors while trying to access the web server pages from the browser. While working on the diagnosis of this issue, the Linux systems administrator executes the following commands:

    Which of the following commands will BEST resolve this issue?

    A. sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
    B. restorecon -R -v /var/www/html
    C. setenforce 0
    D. setsebool -P httpd_can_network_connect_db on

  • Question 7:

    A Linux administrator needs to resolve a service that has failed to start. The administrator runs the following command:

    The following output is returned

    Which of the following is MOST likely the issue?

    A. The service does not have permissions to read write the startupfile.
    B. The service startupfile size cannot be 81k.
    C. The service startupfile cannot be owned by root.
    D. The service startupfile should not be owned by the root group.

  • Question 8:

    A Linux administrator is working on a system and notices that some of the packages are not at the latest version. Which of the following commands should the administrator use to correct this issue?

    A. rpm --update
    B. apt update
    C. dnt update
    D. dpkg --update

  • Question 9:

    Users are unable to create new files on the company's FTP server, and an administrator is troubleshooting the issue. The administrator runs the following commands:

    Which of the following is the cause of the issue based on the output above?

    A. The users do not have the correct permissions to create files on the FTP server.
    B. The ftpusers filesystem does not have enough space.
    C. The inodes is at full capacity and would affect file creation for users.
    D. ftpusers is mounted as read only.

  • Question 10:

    A newly hired Linux administrator needs to grant access to the Linux servers by generating a password-protected RSA key of 4096 bytes. Which of the following commands will accomplish this task?

    A. ssh-keygen -RPb 4096
    B. ssh-keygen -t rsa -b 4096
    C. ssh-keygen -k rsa -l 4096 -p
    D. ssh-keygen -t dsa -B 4096

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.