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

    A systems technician is working on deploying several microservices to various RPM-based systems, some of which could run up to two hours. Which of the following commands will allow the technician to execute those services and continue deploying other microservices within the same terminal section?

    A. gedit and disown

    B. kill 9 %1

    C. fg %1

    D. bg %1 job name

  • Question 72:

    A Linux administrator is troubleshooting a memory-related issue. Based on the output of the commands:

    Which of the following commands would address the issue?

    A. top -p 8321

    B. kill -9 8321

    C. renice -10 8321

    D. free 8321

  • Question 73:

    The application team has reported latency issues that are causing the application to crash on the Linux server. The Linux administrator starts

    troubleshooting and receives the following output:

    Which of the following commands will improve the latency issue?

    A. # echo 'net.core.net_backlog = 5000000' >> /etc/sysctl.conf # sysctl -p # systemctl daemon-reload

    B. # ifdown eth0 # ip link set dev eth0 mtu 800 # ifup eth0

    C. # systemctl stop network # ethtool -g eth0 512 # systemctl start network

    D. # echo 'net.core.rmem max = 12500000' >> /etc/sysctl.conf # echo 'net.core.wmem_max = 12500000' >> /etc/sysctl.conf # sysctl -p

  • Question 74:

    A Linux administrator was asked to run a container with the httpd server inside. This container should be exposed at port 443 of a Linux host machine while it internally listens on port 8443. Which of the following commands will accomplish this task?

    A. podman run -d -p 443:8443 httpd

    B. podman run -d -p 8443:443 httpd

    C. podman run -d -e 443:8443 httpd

    D. podman exec -p 8443:443 httpd

  • Question 75:

    A systems administrator wants to permit access temporarily to an application running on port 1234/TCP on a Linux server. Which of the following commands will permit this traffic?

    A. firewall-cmd --new-service=1234/tcp

    B. firewall-cmd --service=1234 --protocol=tcp

    C. firewall-cmd --add--port=1234/tcp

    D. firewall-cmd --add-whitelist-uid=1234

  • Question 76:

    During a security scan, the password of an SSH key file appeared to be too weak and was cracked. Which of the following commands would allow a user to choose a stronger password and set it on the existing SSH key file?

    A. passwd

    B. ssh

    C. ssh-keygen

    D. pwgen

  • Question 77:

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

    A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?

    A. iptables -F INPUT -j 192.168.10.50 -m DROP

    B. iptables -A INPUT -s 192.168.10.30 -j DROP

    C. iptables -i INPUT --ipv4 192.168.10.50 -z DROP

    D. iptables -j INPUT 192.168.10.50 -p DROP

  • Question 79:

    Application code is stored in Git. Due to security concerns, the DevOps engineer does not want to keep a sensitive configuration file, app . conf, in the repository. Which of the following should the engineer do to prevent the file from being uploaded to the repository?

    A. Run git exclude app. conf.

    B. Run git stash app. conf.

    C. Add app . conf to . exclude.

    D. Add app . conf to . gitignore.

  • Question 80:

    An administrator has source code and needs to rebuild a kernel module. Which of the following command sequences is most commonly used to rebuild this type of module?

    A. ./configure make make install

    B. wget gcc cp

    C. tar xvzf build cp

    D. build install configure

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.