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

    A Linux administrator needs to create a symlink for /usr/local/bin/app-a, which was installed in /usr/local/share/app-a. Which of the following commands should the administrator use?

    A. In -s /usr/local/bin/app-a /usr/local/share/app-a
    B. mv -f /usr/local/share/app-a /usr/local/bin/app-a
    C. cp -f /usr/local/share/app-a /usr/local/bin/app-a
    D. rsync -a /usr/local/share/app-a /usr/local/bin/app-a

  • Question 392:

    A systems administrator wants to ensure all the latest patches and updates are automatically synced to the local repository every two hours on Sundays through Tuesdays in the month of May. Which of the following cron entries can the administrator use to achieve this goal? (Select two.)

    A. 0 */2 * 5 0-2 /root/update-from-remote-to-local.sh
    B. 0 0,2,4,6,8,10,12,14 * 5 0-2 /root/update-from-remote-to-local.sh
    C. 0 0,2,4,6,8,10,12,14 * 5 0-3 /root/update-from-remote-to-local.sh
    D. 0 0-23/2 * 5 0-3 /root/update-from-remote-to-local.sh
    E. 0 0-23/2 * 5 0-2 /root/update-from-remote-to-local.sh
    F. 0 */2 * 5 0-2 /root/update-from-remote-to-local.sh

  • Question 393:

    A user created the following script file:

    # ! /bin/bash

    # FILENAME: /home/user/ script . sh

    echo "hello world"

    exit 1

    However, when the user tried to run the script file using the command "script . sh, an error returned indicating permission was denied. Which of the follow-ing should the user execute in order for the script to run properly?

    A. chmod u+x /home/user/script . sh
    B. chmod 600 /home/user/script . sh
    C. chmod /home/user/script . sh
    D. chmod 0+r /horne/user/script. sh

  • Question 394:

    An administrator wants to reorganize the /etc/sudoers configuration file by department groups. Which of the following actions should the administrator take?

    A. Configure #includedir /etc/sudoers.d directive inside /etc/sudoers file.
    B. Create a symlink in each user's home directory to /etc/sudoers.
    C. Copy /etc/sudoers and name each group with incremental numbers (/etc/sudoers1, /etc/sudoers2).
    D. Execute setfacl commands on /etc/sudoers and add permissions for each group.

  • Question 395:

    Users are reporting that writes on a system configured with SSD drives have been taking longer than expected, but reads do not seem to be affected. A Linux systems administrator is investigating this issue and working on a solution. Which of the following should the administrator do to help solve the issue?

    A. Run the corresponding command to trim the SSD drives.
    B. Use fsck on the filesystem hosted on the SSD drives.
    C. Migrate to high-density SSD drives for increased performance.
    D. Reduce the amount of files on the SSD drives.

  • Question 396:

    A Linux server is not starting up because files in the /boot/ partition are corrupt. After the initial GRUB screen, the following message is displayed:

    Probing EDD (edd=off to disable)... ok Uncompression error -- System halted

    Which of the following steps should the Linux administrator take to recover the system without destroying the existing installation? (Select two.)

    A. Replace the hard drive.
    B. Increase the amount of swap memory.
    C. Start up in single-user mode.
    D. Start up the system using rescue boot media.
    E. Reinstall the kernel packages.
    F. Reinstall the OS.

  • Question 397:

    A technician wants to temporarily use a Linux virtual machine as a router for the network segment 10.10.204.0/24. Which of the following commands should the technician issue? (Select three).

    A. echo "1" > /proc/sys/net/ipv4/ip_forward
    B. iptables -A FORWARD -j ACCEPT
    C. iptables -A PREROUTING -j ACCEPT
    D. iptables -t nat -s 10.10.204.0/24 -p tcp -A PREROUTING -j MASQUERADE
    E. echo "0" > /proc/sys/net/ipv4/ip_forward
    F. echo "1" > /proc/net/tcp
    G. iptables -t nat -s 10.10.204.0/24 -A POSTROUTING -j MASQUERADE
    H. iptables -t nat -A PREROUTING -j MASQUERADE

  • Question 398:

    A new hard drive /dev/sdd was added to a server.

    Which of the following commands will create a partition table with a single partition /dev/sdd1 that consumes the entire disk?

    A. echo 'type=83' | sudo sfdisk /dev/sdd
    B. sudo sfdisk /dev/sdd -t=83
    C. echo 'auto' | sudo fdisk /dev/sdd
    D. sudo fdisk /dev/sdd -1 -t=83

  • Question 399:

    An administrator added the port 2222 for the SSH server on myhost and restarted the SSH server. The administrator noticed issues during the startup of the service. Given the following outputs:

    Which of the following commands will fix the issue?

    A. semanage port -a -t ssh_port_t -p tcp 2222
    B. chcon system_u:object_r:ssh_home_t /etc/ssh/*
    C. iptables -A INPUT -p tcp -- dport 2222 -j ACCEPT
    D. firewall-cmd -- zone=public -- add-port=2222/tcp

  • Question 400:

    Ann, a security administrator, is performing home directory audits on a Linux server. Ann issues the su Joe command and then issues the Is command. The output displays files that reside in Ann's home directory instead of Joe's. Which of the following represents the command Ann should have issued in order to list Joe's files?

    A. su - Joe
    B. sudo Joe
    C. visudo Joe
    D. pkexec joe

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.