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

    A Linux administrator booted up the server and was presented with a non-GUI terminal. The administrator ran the command systemct1 isolate graphical.target and rebooted the system by running systemct1 reboot, which fixed the issue. However, the next day the administrator was presented again with a non-GUI terminal. Which of the following is the issue?

    A. The administrator did not reboot the server properly.
    B. The administrator did not set the default target to basic.target.
    C. The administrator did not set the default target to graphical.target.
    D. The administrator did not shut down the server properly.

  • Question 312:

    A Linux administrator has set up a new DNS forwarder and is configuring all internal servers to use the new forwarder to look up external DNS requests. The administrator needs to modify the firewall on the server for the DNS forwarder to allow the internal servers to communicate to it and make the changes persistent between server reboots. Which of the following commands should be run on the DNS forwarder server to accomplish this task?

    A. ufw allow out dns
    B. systemct1 reload firewalld
    C. iptables -A OUTPUT -p udp -ra udp -dport 53 -j ACCEPT
    D. flrewall-cmd --zone-public --add-port-53/udp --permanent

  • Question 313:

    Users have been unable to reach www.comptia.org from a Linux server. A systems administrator is troubleshooting the issue and does the following: Based on the information above, which of the following is causing the issue?

    A. The name www.comptia.org does not point to a valid IP address.
    B. The server 192.168.168.53 is unreachable.
    C. No default route is set on the server.
    D. The network interface eth0 is disconnected.

  • Question 314:

    A Linux administrator is troubleshooting the root cause of a high CPU load and average.

    Which of the following commands will permanently resolve the issue?

    A. renice -n -20 6295
    B. pstree -p 6295
    C. iostat -cy 1 5
    D. kill -9 6295

  • Question 315:

    Users report that they cannot access some files located in the /opt/finapp directory after a power outage caused an unexpected server restart. A Linux administrator examines the following filesystem details and system logs: # mount | grep finapp /dev/mapper/rhel-opt_finapp on /opt/finapp type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota) # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 931.5G 0 disk sda1 8:1 0 1G 0 part /boot sda2 8:2 0 930.5G 0 part rhel-root 253:0 0 30.5G 0 lvm / rhel-opt_finapp 253:1 0 900G 0 lvm /opt/finapp # grep opt_finapp /var/log/messages XFS (opt_finapp): Corruption detected in inode 3645, extent tree Which of the following commands should the administrator run in an attempt to fix the filesystem?

    A. fdisk /dev/mapper/rhel-opt_finapp
    B. xfs_repair /dev/mapper/rhel-opt_finapp
    C. lvcreate -L900G -n opt_finapp rhel
    D. fsck.ext4 /dev/mapper/rhel-opt_finapp

  • Question 316:

    A Linux administrator is providing a new Nginx image from the registry to local cache. Which of the following commands would allow this to happen?

    A. docker pull nginx
    B. docker attach nginx
    C. docker commit nginx
    D. docker import nginx

  • Question 317:

    Joe, a user, is unable to log in to the Linux system. Given the following output:

    Which of the following commands would resolve the issue?

    A. usermod -s /bin/bash joe
    B. pam_tally2 -u joe -r
    C. passwd -u joe
    D. chage -E 90 joe

  • Question 318:

    Which of the following is a function of a bootloader?

    A. It initializes all the devices that are required to load the OS.
    B. It mounts the root filesystem that is required to load the OS.
    C. It helps to load the different kernels to initiate the OS startup process.
    D. It triggers the start of all the system services.

  • Question 319:

    A Linux administrator modified the SSH configuration file. Which of the following commands should be used to apply the configuration changes?

    A. systemct1 stop sshd
    B. systemct1 mask sshd
    C. systemct1 reload sshd
    D. systemct1 start sshd

  • Question 320:

    An administrator deployed a Linux server that is running a web application on port 6379/tcp.

    SELinux is in enforcing mode based on organization policies.

    The port is open on the firewall.

    Users who are trying to connect to a local instance of the web application receive Error 13, Permission denied.

    The administrator ran some commands that resulted in the following output:

    Which of the following commands should be used to resolve the issue?

    A. semanage port -d -t http_port_t -p tcp 6379
    B. semanage port -a -t http_port_t -p tcp 6379
    C. semanage port -a http_port_t -p top 6379
    D. semanage port -l -t http_port_tcp 6379

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.