Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :396 Q&As
  • Last Updated
    :Mar 23, 2025

CompTIA CompTIA Certifications XK0-005 Questions & Answers

  • Question 261:

    A systems administrator created a web server for the company and is required to add a tag for the API so end users can connect. Which of the following would the administrator do to complete this requirement?

    A. hostnamectl status --no-ask-password

    B. hostnamectl set-hostname "$(perl -le "print" "A" x 86)"

    C. hostnamectl set-hostname Comptia-WebNode -H [email protected]

    D. hostnamectl set-hostname Comptia-WebNode --transient

  • Question 262:

    A cloud engineer needs to launch a container named web-01 in background mode. Which of the following commands will accomplish this task''

    A. docker builder -f --name web-01 httpd

    B. docker load --name web-01 httpd

    C. docker ps -a --name web-01 httpd

    D. docker run -d --name web-01 httpd

  • Question 263:

    A Linux administrator is reviewing changes to a configuration file that includes the following section:

    The Linux administrator is trying to select the appropriate syntax formatter to correct any issues with the configuration file. Which of the following should the syntax formatter support to meet this goal?

    A. Markdown

    B. XML

    C. YAML

    D. JSON

  • Question 264:

    Which of the following commands will display the operating system?

    A. uname -n

    B. uname -s

    C. uname -o

    D. uname -m

  • Question 265:

    A systems administrator pressed Ctrl+Z after starting a program using the command line, and the shell prompt was presented. In order to go back to the program, which of the following commands can the administrator use?

    A. fg

    B. su

    C. bg

    D. ed

  • Question 266:

    The group named support is unable to make changes to the config file. An administrator is reviewing the permissions and sees the following:

    S Is -1 config

    -rw-rw----. 1 root app 4682 02-15 11:25 config

    Which of the following should the administrator execute in order to give the support group access to modify the file while preserving the current ownership?

    A. chown :support config

    B. setfacl -m g:support:rw- config

    C. chmod 664 config

    D. chmod g+s config

  • Question 267:

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

    A Linux systems administrator needs to persistently enable IPv4 forwarding in one of the Linux systems. Which of the following commands can be used together to accomplish this task? (Choose two.)

    A. sysctl net.ipv4.ip_forward

    B. sysctl -w net.ipv4.ip_forward=1

    C. echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf

    D. echo 1 > /proc/sys/net/ipv4/ip_forward

    E. sysctl -p

    F. echo "net.ipv6.conf.all.forwarding=l" >> /etc/sysctl.conf

  • Question 269:

    A systems administrator is investigating an issue in which one of the servers is not booting up properly. The journalctl entries show the following:

    Which of the following will allow the administrator to boot the Linux system to normal mode quickly?

    A. Comment out the /opt/app filesystem in /etc/fstab and reboot.

    B. Reformat the /opt/app filesystem and reboot.

    C. Perform filesystem checks on local filesystems and reboot.

    D. Trigger a filesystem relabel and reboot.

  • Question 270:

    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

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.