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

    A Linux administrator needs to set the permissions on a server. The administrator wants to have the files within the directory set to read-write permissions and the directory set to read-write-execute permissions. Which of the following commands should the administrator use?

    A. chmod 0022
    B. chown 0027
    C. setfacl 0007
    D. umask 0077

  • Question 132:

    A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following output was received:

    Which of the following commands can be used to resolve this issue?

    A. chgrp -R 755 data/
    B. chmod -R 777 data/
    C. chattr -R -i data/
    D. chown -R data/

  • Question 133:

    An administrator added a new disk to expand the current storage. Which of the following commands should the administrator run first to add the new disk to the LVM?

    A. vgextend
    B. lvextend
    C. pvcreate
    D. pvresize

  • Question 134:

    A Linux administrator is attempting to capture all network traffic coming to the server from the 10.0.6.5 IP address. Which of the following commands should the administrator run on the server to achieve the goal?

    A. tcpdump ip 10.0.6.5
    B. tcpdump net 10.0.6.5
    C. tcpdump host 10.0.6.5
    D. tcpdump addr 10.0.6.5

  • Question 135:

    A Linux administrator was asked to run a container with the httpd server inside. This container should be exposed at port 443 of a Linux host machine while it internally listens on port 8443. Which of the following commands will accomplish this task?

    A. podman run -d -p 443:8443 httpd
    B. podman run -d -p 8443:443 httpd
    C. podman run -d -e 443:8443 httpd
    D. podman exec -p 8443:443 httpd

  • Question 136:

    A new database is installed on a server. To comply with the database vendor requirement, the huge page function should be set permanently. Which of the following commands will set this parameter?

    A. sysctl -a "vm.nr_hugepage=100"
    B. echo "vm.nr_hiigepage=100" >> /etc/sysconfig/hugepage.conf
    C. echo "nvm.nr_hugepage=100" >> /etc/modprobe.conf
    D. echo "vm.nr_hugepage=100" >> /etc/sysctl.conf

  • Question 137:

    A junior systems administrator recently installed an HBA card in one of the servers that is deployed for a production environment. Which of the following commands can the administrator use to confirm on which server the card was installed?

    A. lspci | egrep 'hba| fibr'
    B. lspci | zgrep 'hba | fibr'
    C. lspci | pgrep 'hba| fibr'
    D. lspci | 'hba | fibr'

  • Question 138:

    A Linux administrator needs to remove all local firewall rules on a Linux system. Which of the following commands should the administrator run?

    A. iptables -D
    B. iptables -L
    C. iptables -F
    D. iptables -A

  • Question 139:

    Before a Linux administrator restarts a system using systemd, the administrator wants to know if any of the server users are currently logged in. Which of the following commands should the administrator use to verify that the server is not being used?

    A. loginctl list-sessions
    B. journalctl -u
    C. systemctl status user-sessions
    D. systemd --user

  • Question 140:

    A Linux administrator deployed a large-scale application service as a containerized pod. The Linux administrator needs to continually send the application's log file to the company's central log store. Which of the following should the Linux administrator do to efficiently perform this task?

    A. Configure a sidecar to perform log shipping
    B. Run docker exec to access the logs within the container
    C. Execute docker inspect and run a log rsync replication
    D. Set up a custom task scheduler via kubectl

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.