Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :396 Q&As
  • Last Updated
    :Apr 08, 2025

CompTIA CompTIA Certifications XK0-005 Questions & Answers

  • Question 151:

    A Linux administrator is troubleshooting an issue in which users are not able to access https://portal.comptia.org from a specific workstation. The administrator runs a few commands and receives the following output:

    Which of the following tasks should the administrator perform to resolve this issue?

    A. Update the name server in resolv. conf to use an external DNS server.

    B. Remove the entry for portal . comptia.org from the local hosts file.

    C. Add a network route from the 10.10.10.0/24 to the 192.168.0.0/16.

    D. Clear the local DNS cache on the workstation and rerun the host command.

  • Question 152:

    A developer wants to ensure that all files and folders created inside a shared folder named /GroupOODEV inherit the group name of the parent folder. Which of the following commands will help achieve this goal?

    A. chmod g+X / GroupOODEV/

    B. chmod g+W / GroupOODEV/

    C. chmod g+r / GroupOODEV/

    D. chmod g+s / GroupOODEV/

  • Question 153:

    Which of the following files holds the system configuration for journal when running systemd?

    A. /etc/systemd/journald.conf

    B. /etc/systemd/systemd-journalctl.conf

    C. /usr/lib/systemd/journalctl.conf

    D. /etc/systemd/systemd-journald.conf

  • Question 154:

    Users have reported that the interactive sessions were lost on a Linux server. A Linux administrator verifies the server was switched to rescue.target mode for maintenance. Which of the following commands will restore the server to its usual target?

    A. telinit 0

    B. systemct1 reboot

    C. systemct1 get-default

    D. systemct1 emergency

  • Question 155:

    A junior systems administrator has just generated public and private authentication keys for passwordless login. Which of the following files will be moved to the remote servers?

    A. id_dsa.pem

    B. id_rsa

    C. id_ecdsa

    D. id_rsa.pub

  • Question 156:

    A systems administrator is tasked with changing the default shell of a system account in order to disable iterative logins. Which of the following is the best option for the administrator to use as the new shell?

    A. /sbin/nologin

    B. /bin/ sh

    C. /sbin/ setenforce

    D. /bin/bash

  • Question 157:

    A systems administrator is installing various software packages using a pack-age manager. Which of the following commands would the administrator use on the Linux server to install the package?

    A. winget

    B. softwareupdate

    C. yum-config

    D. apt

  • Question 158:

    A Linux administrator needs to create a new cloud.cpio archive containing all the files from the current directory. Which of the following commands can help to accomplish this task?

    A. ls | cpio -iv > cloud.epio

    B. ls | cpio -iv < cloud.epio

    C. ls | cpio -ov > cloud.cpio

    D. ls cpio -ov < cloud.cpio

  • Question 159:

    Employees in the finance department are having trouble accessing the file /opt/work/file. All IT employees can read and write the file. Systems administrator reviews the following output:

    Which of the following commands would permanently fix the access issue while limiting access to IT and finance department employees?

    A. chattr +i file

    B. chown it:finance file

    C. chmod 666 file

    D. setfacl -m g:finance:rw file

  • Question 160:

    A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding. Which of the following commands is the correct way to accomplish this task?

    A. echo 1 > /proc/sys/net/ipv4/ipv_forward

    B. sysctl -w net.ipv4.ip_forward=1

    C. firewall-cmd --enable ipv4_forwarding

    D. systemct1 start ipv4_forwarding

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.