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

    A Linux administrator is creating a new sudo profile for the accounting user. Which of the following should be added by the administrator to the sudo configuration file so that the accounting user can run / opt/ acc/ report as root?

    A. accounting localhost=/opt/acc/report
    B. accounting ALL=/opt/acc/report
    C. %accounting ALL=(ALL) NOPASSWD: /opt/acc/report
    D. accounting /opt/acc/report= (ALL) NOPASSWD: ALL

  • Question 142:

    A Linux administrator is reviewing changes to a configuration file that includes the following section: The Linux administrator is trying to select the appropriate syntax formatter to correct any issues with the configuration file. Which of the following should the syntax formatter support to meet this goal?

    A. Markdown
    B. XML
    C. YAML
    D. JSON

  • Question 143:

    Users are reporting that a Linux server is responding slowly. A systems administrator troubleshooting the server issue sees the following iostat output, with %iowait at 50.38. Which of the following is most likely the issue?

    A. The CPU is mostly waiting for I/O operations.
    B. / filesystem does not have enough storage allocated.
    C. /var filesystem is almost full.
    D. The CPU capacity is inadequate.

  • Question 144:

    After installing a new version of a package, a systems administrator notices a new version of the corresponding, service file was Installed In order to use the new version of the, service file, which of the following commands must be Issued FIRST?

    A. systemct1 status
    B. systemct1 stop
    C. systemct1 reinstall
    D. systemct1 daemon-reload

  • Question 145:

    A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve this goal?

    A. chmod 4744 dev_team.txt
    B. chmod 744 --setuid dev_team.txt
    C. chmod -c 744 dev_team.txt
    D. chmod -v 4744 --suid dev_team.txt

  • Question 146:

    A Linux administrator has defined a systemd script docker-repository.mount to mount a volume for use by the Docker service. The administrator wants to ensure that Docker service does not start until the volume is mounted. Which of the following configurations needs to be added to the Docker service definition to best accomplish this task?

    A. After=docker-respository.mount
    B. ExecStart=/usr/bin/mount -a
    C. Requires=docker-repository.mount
    D. RequiresMountsFor=docker-repository.mount

  • Question 147:

    Which of the following commands is used to tune kernel parameters?

    A. sysctl
    B. ss
    C. mkinitrd
    D. lsof

  • Question 148:

    DRAG DROP

    As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following:

    Add relevant content to /tmp/script.sh, so that it finds and compresses rotated files in /var/log without recursion.

    INSTRUCTIONS

    Fill the blanks to build a script that performs the actual compression of rotated log files.

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

    A Linux engineer is removing a previously created firewall rule.

    Which of the following commands will help the administrator accomplish this task?

    A. ufw delete 80/tcp
    B. ufw delete deny 80/tcp
    C. ufw delete 80/tcp deny
    D. delete7!

  • Question 150:

    A systems administrator needs to disable root login for SSH. Which of the following commands should the administrator use?

    A. touch /etc/ssh/sshd_config | awk 's/PermitRootLoginX yes/PermitRootLoginX no/'
    B. sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
    C. touch /etc/ssh/sshd_config | print* 1PermitRootLogin/PermitRootLogin no/'
    D. cat /etc/ssh/sshd_config | grep 's/PermitRootLogin yes/PermitRootLogin no/'

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.