XK0-005 Exam Details

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

CompTIA XK0-005 Online Questions & Answers

  • Question 111:

    One leg of an LVM-mirrored volume failed due to the underlying physical volume, and a systems administrator is troubleshooting the issue. The following output has been provided:

    Given this scenario, which of the following should the administrator do to recover this volume?

    A. Reboot the server. The volume will automatically go back to linear mode.
    B. Replace the failed drive and reconfigure the mirror.
    C. Reboot the server. The volume will revert to stripe mode.
    D. Recreate the logical volume.

  • Question 112:

    A user is attempting to log in to a Linux server that has Kerberos SSO ena-bled. Which of the following commands should the user run to authenticate and then show the ticket grants? (Select TWO).

    A. kinit
    B. klist
    C. kexec
    D. kioad
    E. pkexec
    F. realm

  • Question 113:

    A systems administrator received a report about issues with a Linux system. Given the following output:

    Which of the following is the best command to use to fix this issue?

    A. mkfs.xfs /var
    B. rm -rf /var/*
    C. lvextend -L +5G -r /dev/mapper/rootvg-varlv
    D. lvresize -L +2G -r /dev/mapper/rootvg-rootlv

  • Question 114:

    A user (userA) has reported issues while logging in to the system. The following output has been provided: bash Could not chdir to home directory /home/userA: Permission denied -bash: /home/userA/.bash_profile: Permission denied # cat /etc/passwd | grep userA userA:x:1234:3400:userA account:/home/userA/:/bin/bash # passwd -S userA userA PS 2022-10-17 1 99999 0 (Password set. SHA512 crypt.) # groups userA

    admin dev usergrp # ls -lth /home/ drwx------ 7 root admin 9 Jan 17 2019 userA drwxr-xr-x 4 userC app 9 Jan 23 2020 userC Which of the following describes the issue userA is having?

    A. The password for userA is not set
    B. The group for userA is not assigned correctly
    C. The account password for userA has expired
    D. The assigned home directory is not owned by userA

  • Question 115:

    HotsPot

    A new drive was recently added to a Linux system. Using the environment and tokens provided, complete the following tasks:

    Create an appropriate device label.

    Format and create an ext4 file system on the new partition. The current working directory is /.

  • Question 116:

    An administrator needs to increase the system priority of a process with PID 2274. Which of the following commands should the administrator use to accomplish this task?

    A. renice --n --15 2274
    B. nice -15 2274
    C. echo "--15" > /proc/PID/2274/priority
    D. ps --ef I grep 2274

  • Question 117:

    An administrator wants to copy files from /opt/tools to the home directory at /home/admin. Which of the following should the administrator run?

    A. mkdir -p /home/admin/tools
    B. cp -R /opt/tools ~
    C. cd /opt/tools; rsync /home/admin
    D. scp /opt/tools localhost:/

  • Question 118:

    A Linux systems administrator is working to obtain the installed kernel version of several hundred systems. Which of the following utilities should the administrator use for this task?

    A. Ansible
    B. Git
    C. Docker
    D. Bash

  • Question 119:

    A database administrator requested the installation of a custom database on one of the servers. Which of the following should the Linux administrator configure so the requested packages can be installed?

    A. /etc/yum.conf
    B. /etc/ssh/sshd.conf
    C. /etc/yum.repos.d/db.repo
    D. /etc/resolv.conf

  • Question 120:

    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

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.