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

    The group owner of the / home/ test directory would like to preserve all group permissions on files created in the directory. Which of the following commands should the group owner execute?

    A. chmod g+s /home/test
    B. chgrp test /home/test
    C. chmod 777 /home/test
    D. chown --hR test /home/test

  • Question 182:

    A systems administrator receives reports that several virtual machines in a host are responding slower than expected. Upon further investigation, the administrator obtains the following output from one of the affected systems:

    Which of the following best explains the reported issue?

    A. The physical host is running out of CPU resources, leading to insufficient CPU time being allocated to virtual machines.
    B. The physical host has enough CPU cores, leading to users running more processes to compensate for the slower response times.
    C. The virtual machine has enough CPU cycles, leading to the system use percentage being higher than expected.
    D. The virtual machine is running out of CPU resources, leading to users experiencing longer response times.

  • Question 183:

    A Linux administrator generated a list of users who have root-level command-line access to the Linux server to meet an audit requirement. The administrator analyzes the following /etc/passwd and /etc/sudoers files: $ cat /etc/passwd root:x: 0:0: :/home/root: /bin/bash lee: x: 500: 500: :/home/lee:/bin/tcsh mallory:x: 501:501: :/root:/bin/bash eve:x: 502: 502: /home/eve:/bin/nologin

    carl:x:0:503: :/home/carl:/bin/sh bob:x: 504: 504: : /home/bob:/bin/ksh alice:x: 505:505: :/home/alice:/bin/rsh $ cat /etc/sudoers Cmnd_Alias SHELLS = /bin/tcsh, /bin/sh, /bin/bash Cmnd_Alias SYSADMIN = /usr/sbin/tcpdump ALL = (ALL) ALL ALL = NOPASSWD: SYSADMIN Which of the following users, in addition to the root user, should be listed in the audit report as having root-level command-line access? (Select two).

    A. Carl
    B. Lee
    C. Mallory
    D. Eve
    E. Bob
    F. Alice

  • Question 184:

    A systems administrator is compressing old log files in order to save space. Which of the following commands will allow the administrator to save the most space?

    A. bzip2
    B. xz
    C. tar
    D. gzip

  • Question 185:

    A junior developer is unable to access an application server and receives the following output:

    The systems administrator investigates the issue and receives the following output:

    Which of the following commands will help unlock the account?

    A. Pam_tally2 --user=dev2 ---quiet
    B. pam_ tally2 --user=dev2
    C. pam_tally2 --user+dev2 ---quiet
    D. pam_tally2 --user=dev2 ---reset

  • Question 186:

    A Linux system is having issues. Given the following outputs:

    # dig @192.168.2.2 mycomptiahost

    ; << >> DiG 9.9.4-RedHat-9.9.4-74.el7_6.1 << >> @192.168.2.2 mycomptiahost

    ; (1 server found)

    ;; global options: +cmd

    ;; connection timed out; no servers could be reached

    # nc -v 192.168.2.2 53

    Ncat: Version 7.70 ( https://nmap.org/ncat )

    Ncat: Connection timed out.

    # ping 192.168.2.2

    PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.

    64 bytes from 192.168.2.2: icmp_seq=1 ttl=117 time=4.94 ms

    64 bytes from 192.168.2.2: icmp_seq=2 ttl=117 time=10.5 ms

    Which of the following best describes this issue?

    A. The DNS host is down.
    B. The name mycomptiahost does not exist in the DNS.
    C. The Linux engineer is using the wrong DNS port.
    D. The DNS service is currently not available or the corresponding port is blocked.

  • Question 187:

    A new disk was presented to a server as /dev/ sdd. The systems administrator needs to check if a partition table is on that disk. Which of the following commands can show this information?

    A. Isscsi
    B. fdisk
    C. blkid
    D. partprobe

  • Question 188:

    A Linux systems administrator has applied the necessary configuration to allow both HTTP and HTTPS through the firewall. However, the host is not responding on either HTTP or HTTPS. Given the output below, what is the issue?

    firewall-cmd --list-all-zones

    public (active)

    ...

    services: ssh

    ...

    internal

    ...

    services: http https ssh

    Which of the following best describes the reason the system is not responding on HTTP or HTTPS?

    A. The incorrect rules were configured on the firewall
    B. The interface has the incorrect routes configured
    C. The rules were added to the wrong zone

  • Question 189:

    A systems administrator made some unapproved changes prior to leaving the company. The newly hired administrator has been tasked with revealing the system to a compliant state. Which of the following commands will list and remove the correspondent packages?

    A. dnf list and dnf remove last
    B. dnf remove and dnf check
    C. dnf info and dnf upgrade
    D. dnf history and dnf history undo last

  • Question 190:

    A user is unable to log on to a Linux workstation. The systems administrator executes the following command:

    cat /etc/shadow | grep user1

    The command results in the following output:

    user1 :! $6$QERgAsdvojadv4asdvaarC/9dj34GdafGVaregmkdsfa:18875:0:99999:7 :::

    Which of the following should the systems administrator execute to fix the issue?

    A. chown -R userl:user1 /home/user1
    B. sed -i '/ ::: / :: /g' /etc/shadow
    C. chgrp user1:user1 /home/user1
    D. passwd -u user1

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.