Exam Details

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

CompTIA CompTIA Certifications XK0-005 Questions & Answers

  • Question 141:

    A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?

    A. unzip -v

    B. bzip2 -z

    C. gzip

    D. funzip

  • Question 142:

    An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct version of this file?

    A. rpm -qa | grep kernel; uname -a

    B. yum -y update; shutdown -r now

    C. cat /etc/centos-release; rpm -Uvh --nodeps

    D. telinit 1; restorecon -Rv /boot

  • Question 143:

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

    CORRECT TEXT

    Junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior

    administrator from running Apache.

    INSTRUCTIONS

    Install Apache and start the service. Verify that the Apache service is running with the defaults.

    Typing "help" in the terminal will show a list of relevant event commands.

    If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

    A. See the explanation below.

    B. PlaceHolder

    C. PlaceHolder

    D. PlaceHolder

  • Question 145:

    A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users' access will be disabled once the project is over. The expiration date should be 2021-09-30. Which of the following commands will accomplish this task?

    A. sudo useradd -e 2021-09-30 Project_user

    B. sudo useradd -c 2021-09-30 Project_user

    C. sudo modinfo -F 2021-09-30 Project_uses

    D. sudo useradd -m -d 2021-09-30 Project_user

  • Question 146:

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

    A systems administrator needs to remove a disk from a Linux server. The disk size is 500G, and it is the only one that size on that machine. Which of the following commands can the administrator use to find the corresponding device name?

    A. fdisk -V

    B. partprobe -a

    C. lsusb -t

    D. lsscsi -s

  • Question 148:

    An administrator needs to get network information from a group of statically assigned workstations before they are reconnected to the network. Which of the following should the administrator use to obtain this information?

    A. ip show

    B. ifcfg --a

    C. ifcfg --s

    D. i fname --s

  • Question 149:

    A systems administrator is trying to track down a rogue process that has a TCP listener on a network interface for remote command-and-control instructions.

    Which of the following commands should the systems administrator use to generate a list of rogue process names? (Select two).

    A. netstat -antp | grep LISTEN

    B. lsof -iTCP | grep LISTEN

    C. lsof -i:22 | grep TCP

    D. netstat -a | grep TCP

    E. nmap -p1-65535 | grep -i tcp

    F. nmap -sS 0.0.0.0/0

  • Question 150:

    An administrator transferred a key for SSH authentication to a home directory on a remote server. The key file was moved to .ssh/authorized_keys location in order to establish SSH connection without a password. However, the SSH

    command still asked for the password.

    Given the following output:

    Which of the following commands would resolve the issue?

    A. restorecon .ssh/authorized_keys

    B. ssh_keygen -t rsa -o .ssh/authorized_keys

    C. chown root:root .ssh/authorized_keys

    D. chmod 600 .ssh/authorized_keys

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.