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

    An administrator installed an application from source into /opt/operations1/ and has received numerous reports that users are not able to access the application without having to use the full path /opt/operations1/bin/*. Which of the following commands should be used to resolve this issue?

    A. echo 'export PATH=$PATH:/opt/operations1/bin' >> /etc/profile

    B. echo 'export PATH=/opt/operations1/bin' >> /etc/profile

    C. echo 'export PATH=$PATH/opt/operations1/bin' >> /etc/profile

    D. echo 'export $PATH:/opt/operations1/bin' >> /etc/profile

  • Question 12:

    A junior administrator is setting up a new Linux server that is intended to be used as a router at a remote site. Which of the following parameters will accomplish this goal?

    A. Option A

    B. Option B

    C. Option C

    D. Option D

  • Question 13:

    Which of the following actions are considered good security practices when hardening a Linux server? (Select two).

    A. Renaming the root account to something else

    B. Removing unnecessary packages

    C. Changing the default shell to /bin/csh

    D. Disabling public key authentication

    E. Disabling the SSH root login possibility

    F. Changing the permissions on the root filesystem to 600

  • Question 14:

    A systems administrator is tasked with preventing logins from accounts other than root, while the file /etc/nologin exists. Which of the following PAM modules will accomplish this task?

    A. pam_login.so

    B. pam_access.so

    C. pam_logindef.so

    D. pam_nologin.so

  • Question 15:

    A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve this goal?

    A. chmod 4744 dev_team.txt

    B. chmod 744 --setuid dev_team.txt

    C. chmod -c 744 dev_team.txt

    D. chmod -v 4744 --suid dev_team.txt

  • Question 16:

    A newly created container has been unable to start properly, and a Linux administrator is analyzing the cause of the failure. Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?

    A. docker export

    B. docker info

    C. docker start

    D. docker inspect

  • Question 17:

    A systems administrator is enabling LUKS on a USB storage device with an ext4 filesystem format. The administrator runs dmesg and notices the following output:

    Given this scenario, which of the following should the administrator perform to meet these requirements? (Select three).

    A. gpg /dev/sdcl

    B. pvcreate /dev/sdc

    C. mkfs . ext4 /dev/mapper/LUKSCJ001 - L ENCRYPTED

    D. umount / dev/ sdc

    E. fdisk /dev/sdc

    F. mkfs . vfat /dev/mapper/LUKS0001 -- L ENCRYPTED

    G. wipefs --a/dev/sdbl

    H. cryptsetup IuksFormat /dev/ sdcl

  • Question 18:

    A Linux administrator copied a Git repository locally, created a feature branch, and committed some changes to the feature branch. Which of the following Git actions should the Linux administrator use to publish the changes to the main branch of the remote repository?

    A. rebase

    B. tag

    C. commit

    D. push

  • Question 19:

    Which of the following tools is commonly used for creating CI/CD pipelines?

    A. Chef

    B. Puppet

    C. Jenkins

    D. Ansible

  • Question 20:

    Users in the human resources department are trying to access files in a newly created directory. Which of the following commands will allow the users access to the files?

    A. chattr

    B. chgrp

    C. chage

    D. chcon

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.