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

    DRAG DROP

    You have been asked to parse a log file of logins to determine various information about who is logging in and when.

    INSTRUCTIONS

    Open and inspect the Login log file.

    Drag and drop the correct commands onto the output that was generated from that

    command.

    Tokens can be used only once and not all will be used.

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

    Select and Place:

  • Question 102:

    An administrator would like to securely connect to a server and forward port 8080 on a local machine to port 80 on the server. Which of the following commands should the administrator use to satisfy both requirements?

    A. ssh --L 8080: localhost:80 admin@server

    B. ssh --R 8080: localhost:80 admin@server

    C. ssh --L 80 : localhost:8080 admin@server

    D. ssh --R 80 : localhost:8080 admin@server

  • Question 103:

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

    A systems administrator is compiling a report containing information about processes that are listening on the network ports of a Linux server. Which of the following commands will allow the administrator to obtain the needed information?

    A. ss -pint

    B. tcpdump -nL

    C. netstat -pn

    D. lsof -It

  • Question 105:

    A Linux administrator is adding a new configuration file to a Git repository. Which of the following describes the correct order of Git commands to accomplish the task successfully?

    A. pull -> push -> add -> checkout

    B. pull -> add -> commit -> push

    C. checkout -> push -> add -> pull

    D. pull -> add -> push -> commit

  • Question 106:

    Due to performance issues on a server, a Linux administrator needs to termi-nate an unresponsive process. Which of the following commands should the administrator use to terminate the process immediately without waiting for a graceful shutdown?

    A. kill -SIGKILL 5545

    B. kill -SIGTERM 5545

    C. kill -SIGHUP 5545

    D. kill -SIGINT 5545

  • Question 107:

    A systems administrator is adding a Linux-based server and removing a Windows-based server from a cloud-based environment. The changes need to be validated before they are applied to the cloud-based environment. Which of the following tools should be used to meet this requirement?

    A. Ansible

    B. git clone

    C. git pull

    D. terraform plan

  • Question 108:

    A Linux systems administrator is setting up a new web server and getting 404 - NOT FOUND errors while trying to access the web server pages from the browser. While working on the diagnosis of this issue, the Linux systems administrator executes the following commands:

    Which of the following commands will BEST resolve this issue?

    A. sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

    B. restorecon -R -v /var/www/html

    C. setenforce 0

    D. setsebool -P httpd_can_network_connect_db on

  • Question 109:

    A systems administrator is tasked with mounting a USB drive on a system. The USB drive has a single partition, and it has been mapped by the system to the device /dev/sdb. Which of the following commands will mount the USB to /media/ usb?

    A. mount /dev/sdb1 /media/usb

    B. mount /dev/sdb0 /media/usb

    C. mount /dev/sdb /media/usb

    D. mount -t usb /dev/sdb1 /media/usb

  • Question 110:

    A Linux administrator needs to transfer a local file named accounts . pdf to a remote / tmp directory of a server with the IP address 10.10.10.80. Which of the following commands needs to be executed to transfer this file?

    A. rsync [email protected]: /tmp accounts.pdf

    B. scp accounts.pdf [email protected]:/tmp

    C. cp [email protected]. 80: /tmp accounts.pdf

    D. ssh accounts.pdf [email protected]: /tmp

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.