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

    A Linux administrator needs to restart a server and wants to see if any users are currently connected to it. Which of the following commands should the administrator run to find this information?

    A. man
    B. id
    C. w
    D. host

  • Question 342:

    An administrator is trying to terminate a process that is not responding. Which of the following commands should the administrator use in order to force the termination of the process?

    A. kill PID
    B. kill -1 PID
    C. kill -9 PID
    D. kill -15 PID

  • Question 343:

    In order to copy data from another VLAN, a systems administrator wants to temporarily assign IP address 10.0.6 5/24 to the newly added network interface enp1s0f1. Which of the following commands should the administrator run to achieve the goal?

    A. ip addr add 10.0.6.5/24 dev enpls0f1
    B. echo "IPV4_ADDRESS=10.0.6.5/24" > /etc/sysconfig/network-scripts/ifcfg-enplsOfl
    C. ifconfig 10.0.6.5/24 enpsIs0f1
    D. nmcli conn add lpv4.address-10.0.6.5/24 ifname enpls0f1

  • Question 344:

    A systems administrator needs to validate that the dm_multipath driver was loaded in a Linux system. Which of the following commands should the administrator use?

    A. lsmod | grep dm_multipath
    B. modinfo | grep dm_multipath
    C. insmod | grep dm_multipath
    D. modprobe | grep dm_multipath

  • Question 345:

    A systems administrator is writing a script to analyze the number of files in the directory /opt/application/home/. Which of the following commands should the administrator use in conjunction with ls -l | to count the files?

    A. less
    B. tail -f
    C. tr -c
    D. wc -l

  • Question 346:

    An organization's business office needs to collaborate on quarterly reports and asks the systems administrator to create a finance group. The administrator creates the following directory: drwxrwxr-x Business Business |j096 Oct 15 16:40 Q1 Which of the following commands will allow all members of the finance group to have group ownership of all files created in the Q1 directory while ensuring that members of the business group preserve access? (Select two).

    A. chmod g+s Q1/
    B. chmod u+s Q1/
    C. chmod a+x Q1/
    D. chown Finance Q1/
    E. chmod g+x Q1/

  • Question 347:

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

    An administrator is running a web server in a container named web, but none of the error output is not showing. Which of the following should the administrator use to generate the errors on the container?

    A. docker-compose inspect WEB
    B. dockerlogs WEB
    C. dockerrun --nameWEB --volume/dev/stdout:/var/log/nginx/error.log
    D. dockerps WEB -f

  • Question 349:

    A Linux administrator is troubleshooting a systemd mount unit file that is not working correctly. The file contains:

    [root@system] # cat mydocs.mount

    [Unit]

    Description=Mount point for My Documents drive

    [Mount]

    What=/dev/drv/disk/by-uuid/94afc9b2-ac34-ccff-88ae-297ab3c7ff34

    Where=/home/user1/My Documents

    Options=defaults

    Type=xfs

    [Install]

    WantedBy=multi-user.target

    The administrator verifies the drive UUID correct, and user1 confirms the drive should be mounted as My Documents in the home directory.

    Which of the following can the administrator do to fix the issues with mounting the drive? (Select two).

    A. Rename the mount file to home-user1-My\x20Documents.mount.
    B. Rename the mount file to home-user1-my-documents.mount.
    C. Change the What entry to /dev/drv/disk/by-uuid/94afc9b2\-ac34\-ccff\-88ae\- 297ab3c7ff34.
    D. Change the Where entry to Where=/home/user1/my\ documents.
    E. Change the Where entry to Where=/home/user1/My\x20Documents.
    F. Add quotes to the What and Where entries, such as What="/dev/drv/disk/by- uuid/94afc9b2-ac34-ccff-88ae-297ab3c7ff34" and Where="/home/user1/My Documents".

  • Question 350:

    A systems technician is configuring an application server to accept packets from a trusted source with the IP address 192.168.10.22. Which of the following commands will allow communication between the two servers?

    A. iptables -L -s 192.168.10.22 -j ACCEPT
    B. iptables -D INPUT -s 192.168.10.22 -j ACCEPT
    C. iptables -A INPUT -s 192.168.10.22 -j ACCEPT
    D. iptables -A OUTPUT -S 192.168.10.22 -j ACCEPT

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.