XK0-005 Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :476 Q&As
  • Last Updated
    :Jul 13, 2026

CompTIA XK0-005 Online Questions & Answers

  • Question 401:

    A file called testfile has both uppercase and lowercase letters:

    $ cat testfile

    ABCDEfgH

    IJKLmnoPQ

    abcdefgH

    ijklLMNopq

    A Linux administrator is tasked with converting testfile into all uppercase and writing it to a new file with the name uppercase. Which of the following commands will achieve this task?

    A. tr '(A-Z}' '{a-z}' < testfile > uppercase
    B. echo testfile | tr "[Z-A]" "[z-a]" < testfile > uppercase
    C. cat testfile | tr '{z-a)' '{Z-A}' < testfile > uppercase
    D. tr '[a-z]' '[A-Z]' < testfile > uppercase

  • Question 402:

    A Linux administrator needs to list the packages that are currently installed on a server. Which of the following commands should the administrator use?

    A. snap install list
    B. snap list
    C. snap show
    D. snap packages

  • Question 403:

    A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr--r--. ?

    A. chmod 755 filename.log
    B. chmod 640 filename.log
    C. chmod 740 filename.log
    D. chmod 744 filename.log

  • Question 404:

    An administrator recently updated the BIND software package and would like to review the default configuration that shipped with this version. Which of the following files should the administrator review?

    A. /etc/named.conf.rpmnew
    B. /etc/named.conf.rpmsave
    C. /etc/named.conf
    D. /etc/bind/bind.conf

  • Question 405:

    An administrator thinks that the user Joe may be running an unauthorized process on a Linux server. Which of the following commands should the administrator run to confirm this idea?

    A. lsof -p 'Joe'
    B. top -u 'Joe'
    C. jobs -n 'Joe'
    D. ps -ax 'Joe'

  • Question 406:

    A systems administrator is deploying three identical, cloud-based servers. The administrator is using the following code to complete the task:

    Which of the following technologies is the administrator using?

    A. Ansible
    B. Puppet
    C. Chef
    D. Terraform

  • Question 407:

    As part of the requirements for installing a new application, the swappiness parameter needs to be changed to O. This change needs to persist across re-boots and be applied immediately. A Linux systems administrator is performing this change. Which of the following steps should the administrator complete to accomplish this task?

    A. echo "vm. swappiness--()" >> /etc/sysctl . conf andand sysctl --p
    B. echo "vrn. >> / proc/meminfo andand sysctl --a
    C. sysctl --v >> / proc/meminfo and and echo "vm. swapiness=0"
    D. sysctl --h "vm. swapiness--O" andand echo / etc/vmswapiness

  • Question 408:

    A Linux systems administrator wants to validate the network interfaces configuration and status on a Linux server. Which of the following commands should the administrator use to display the information for interface eth3 including status, IP address, subnet mask, and configuration?

    A. ip list interface eth3
    B. ip addr show dev eth3
    C. ip show eth3
    D. ip config eth3

  • Question 409:

    Joe, a user, is unable to log in to the system. The Linux administrator checks the /etc/passwd file and reviews the following output:

    Joe:x:1002:1002::/home/Joe:/sbin/nologin

    Which of the following should the administrator do to fix this issue?

    A. Remove the x entry in the /etc/passwd file for Joe
    B. Change the /sbin/nologin entry to /bin/sh for Joe
    C. Issue the usermod -l Joe command
    D. Ensure that a corresponding entry is in the /etc/shadow file for Joe

  • Question 410:

    After starting an Apache web server, the administrator receives the following error:

    Apr 23 localhost.localdomain httpd 4618] : (98) Address already in use: AH00072: make_sock: could not bind to address [: :]80

    Which of the following commands should the administrator use to further trou-bleshoot this issue?

    A. Ss
    B. Ip
    C. Dig
    D. Nc

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.