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

    A Linux engineer needs to get information from the foo.com domain mail servers. Which of the following network tools should the engineer use?

    A. arp mx foo.com
    B. nc mx foo.com
    C. dig mx foo.com
    D. route mx foo.com

  • Question 92:

    A systems administrator wants to list all local accounts in which the UID is greater than 500. Which of the following commands will give the correct output?

    A. find /etc/passwd --size +500
    B. cut --d: fl / etc/ passwd > 500
    C. awk -F: `$3 > 500 {print $1}' /etc/passwd
    D. sed '/UID/' /etc/passwd < 500

  • Question 93:

    A DevOps engineer needs to download a Git repository from https://git.company.com/admin/project.git. Which of the following commands will achieve this goal?

    A. git clone https://git.company.com/admin/project.git
    B. git checkout https://git.company.com/admin/project.git
    C. git pull https://git.company.com/admin/project.git
    D. git branch https://git.company.com/admin/project.git

  • Question 94:

    A systems administrator receives the following message after running an ip link command to verify the status of a network interface named enp0s3:

    state DOWN

    Which of the following commands should the administrator use to resolve this issue?

    A. ip link set enp0s3 up
    B. ip link ifb enp0s3 up
    C. ip link add enp0s3 up
    D. ip link enp0s3 up

  • Question 95:

    A Linux administrator found many containers in an exited state. Which of the following commands will allow the administrator to clean up the containers in an exited state?

    A. docker rm -- all
    B. docker rm $ (docker ps -aq)
    C. docker images prune *
    D. docker rm -- state exited

  • Question 96:

    A systems administrator needs to check the size of the filesystem on the current application servers and ensure that the following filesystems are mounted:

    /var /var/log/audit /tmp /home/application

    Which of the following commands should the administrator use for these tasks?

    A. fdisk
    B. df
    C. du
    D. lsblk

  • Question 97:

    A Linux engineer has been notified about the possible deletion of logs from the file /opt/app/logs. The engineer needs to ensure the log file can only be written into without removing previous entries.

    Which of the following commands would be BEST to use to accomplish this task?

    A. chattr +a /opt/app/logs
    B. chattr +d /opt/app/logs
    C. chattr +i /opt/app/logs
    D. chattr +c /opt/app/logs

  • Question 98:

    A Linux administrator wants to display a list of all containers, including ones that are stopped. Which of the following commands should the administrator run?

    A. docker ps -a
    B. docker image list
    C. docker stats
    D. docker list -a

  • Question 99:

    Joe, a user, is unable to log in to the Linux system Given the following output:

    Which of the following command would resolve the issue?

    A. usermod -s /bin/bash joe
    B. pam_tally2 -u joe -r
    C. passwd -u joe
    D. chage -E 90 joe

  • Question 100:

    Which of the following will prevent non-root SSH access to a Linux server?

    A. Creating the /etc/nologin file
    B. Creating the /etc/nologin.allow file containing only a single line root
    C. Creating the /etc/nologin/login.deny file containing a single line +all
    D. Ensuring that /etc/pam.d/sshd includes account sufficient pam_nologin.so

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.