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

    Which of the following commands is used to configure the default permissions for new files?

    A. setenforce

    B. sudo

    C. umask

    D. chmod

  • Question 222:

    An administrator thinks that a package was installed using a snap. Which of the following commands can the administrator use to verify this information?

    A. snap list

    B. snap find

    C. snap install

    D. snap try

  • Question 223:

    A systems administrator wants to test the route between IP address 10.0.2.15 and IP address 192.168.1.40. Which of the following commands will accomplish this task?

    A. route -e get to 192.168.1.40 from 10.0.2.15

    B. ip route get 192.163.1.40 from 10.0.2.15

    C. ip route 192.169.1.40 to 10.0.2.15

    D. route -n 192.168.1.40 from 10.0.2.15

  • Question 224:

    A cloud engineer needs to check the link status of a network interface named eth1 in a Linux server. Which of the following commands can help to achieve the goal?

    A. ifconfig hw eth1

    B. netstat -r eth1

    C. ss -ti eth1

    D. ip link show eth1

  • Question 225:

    A systems administrator wants to upgrade /bin/ someapp to a new version, but the administrator does not know the package name. Which of the following will show the RPM package name that provides that binary file?

    A. rpm --qf /bin/ someapp

    B. rpm --Vv / bin/ someapp

    C. rpm - P / bin/ some app

    D. rpm --i / bin/ someapp

  • Question 226:

    Users are experiencing high latency when accessing a web application served by a Linux machine. A systems administrator checks the network interface counters and sees the following:

    Which of the following is the most probable cause of the observed latency?

    A. The network interface is disconnected.

    B. A connection problem exists on the network interface.

    C. No IP address is assigned to the interface.

    D. The gateway is unreachable.

  • Question 227:

    A new file was added to a main Git repository. An administrator wants to synchronize a local copy with the contents of the main repository. Which of the following commands should the administrator use for this task?

    A. git reflog

    B. git pull

    C. git status

    D. git push

  • Question 228:

    A Linux administrator is providing a new Nginx image from the registry to local cache. Which of the following commands would allow this to happen?

    A. docker pull nginx

    B. docker attach nginx

    C. docker commit nginx

    D. docker import nginx

  • Question 229:

    A Linux engineer finds multiple failed login entries in the security log file for application users. The Linux engineer performs a security audit and discovers a security issue. Given the following:

    # grep -iE '*www*|db' /etc/passwd

    www-data:x:502:502:www-data:/var/www:/bin/bash

    db:x: 505:505:db: /opt/db:/bin/bash

    Which of the following commands would resolve the security issue?

    A. usermod -d /srv/www-data www-data andand usermod -d /var/lib/db db

    B. passwd -u www-data andand passwd -u db

    C. renice -n 1002 -u 502 andand renice -n 1005 -u 505

    D. chsh -s /bin/false www-data andand chsh -s /bin/false db

  • Question 230:

    As part of the requirements for installing a new application, the swappiness parameter needs to be changed to O. This change needs to persist across re-boots and be applied immediately. A Linux systems administrator is performing this change. Which of the following steps should the administrator complete to accomplish this task?

    A. echo "vm. swappiness--()" >> /etc/sysctl . conf andand sysctl --p

    B. echo "vrn. >> / proc/meminfo andand sysctl --a

    C. sysctl --v >> / proc/meminfo and and echo "vm. swapiness=0"

    D. sysctl --h "vm. swapiness--O" andand echo / etc/vmswapiness

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.