XK0-005 Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :476 Q&As
  • Last Updated
    :Jul 13, 2026

CompTIA XK0-005 Online Questions & Answers

  • Question 411:

    Using AD Query, the security gateway connections to the Active Directory Domain Controllers using what protocol?

    A. Windows Management Instrumentation (WMI)
    B. Hypertext Transfer Protocol Secure (HTTPS)
    C. Lightweight Directory Access Protocol (LDAP)
    D. Remote Desktop Protocol (RDP)

  • Question 412:

    A systems administrator created a new directory with specific permissions. Given the following output:

    # file: comptia

    # owner: root

    # group: root

    user: : rwx

    group :: r-x

    other: :--

    default:user :: rwx

    default:group :: r-x

    default:group:wheel: rwx

    default:mask :: rwx

    default:other ::

    Which of the following permissions are enforced on /comptia?

    A. Members of the wheel group can read files in /comptia.
    B. Newly created files in /comptia will have the sticky bit set.
    C. Other users can create files in /comptia.
    D. Only root can create files in /comptia.

  • Question 413:

    A Linux administrator needs to rebuild a container with the httpd service in order to change some default parameters. Which of the following should be the first command line in the Dockerfile?

    A. FROM httpd
    B. BASE httpd
    C. USE httpd
    D. INHERIT httpd

  • Question 414:

    After installing some RPM packages, a systems administrator discovers the last package that was installed was not needed. Which of the following commands can be used to remove the package?

    A. dnf remove packagename
    B. apt-get remove packagename
    C. rpm -i packagename
    D. apt remove packagename

  • Question 415:

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

    A. setenforce
    B. sudo
    C. umask
    D. chmod

  • Question 416:

    A Linux administrator needs to run a web application on a server that requires the use of a desktop web browser to enter the final configuration information. The administrator determines the server is running in multi-user mode. The

    administrator verifies that a web browser is installed on the server and that it has a display manager installed.

    Which of the following commands will best allow the administrator to temporarily use the web browser on the server?

    A. sudo systemctl isolate graphical.target
    B. sudo systemctl set-default runlevel5.target
    C. sudo systemctl restart gdm
    D. sudo systemctl --no-wall rescue

  • Question 417:

    An administrator created an initial Git repository and uploaded the first files. The administrator sees the following when listing the repository:

    The administrator notices the file . DS STORE should not be included and deletes it from the online repository. Which of the following should the administrator run from the root of the local repository before the next commit to ensure the file is not uploaded again in future commits?

    A. rm -f .DS STORE andand git push
    B. git fetch andand git checkout .DS STORE
    C. rm -f .DS STORE andand git rebase origin main
    D. echo .DS STORE >> .gitignore

  • Question 418:

    Users report that they are unable to reach the company website https://www.comptia.org. A systems administrator confirms the issue with the following command:

    # curl https://www.comptia.org

    curl: (7) Failed to connect to www.comptia.org port 443: No route to host

    The administrator logs in to the company's web server to check its configuration and sees the following output:

    [email protected]:-># firewall-cmd --list-all

    public (active)

    target: default

    icmp-block-inversion: no

    interfaces: dummy0 eth0

    sources: services: cockpit dhcpv6-client http ssh ports: 3001/tcp protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: rule family="ipv4" source address="61.177.173.6" port port="ssh" protocol="tcp" reject type="icmp-port-unreachable" rule family="ipv4" source address="185.143.45.164" port port="ssh" protocol="tcp" reject type="icmp-port-unreachable" rule family="ipv4" source address="143.198.60.41" port port="ssh" protocol="tcp" reject type="icmp-port-unreachable" [email protected]:-># ip route default via 172.31.1.1 dev eth0 proto dhcp src 65.21.187.65 metric 100 10.0.6.0/24 dev dummy0 proto kernel scope link src 10.0.6.65 metric 550 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 172.18.0.0/16 dev br-28ac2eaeeca1 proto kernel scope link src 172.18.0.1 172.19.0.0/16 dev br-fb3897555ca3 proto kernel scope link src 172.19.0.1 linkdown 172.31.1.1 dev eth0 proto dhcp scope link src 65.21.187.65 metric 100 192.168.224.0/20 dev br-e949ab177d79 proto kernel scope link src 192.168.224.1 linkdown 192.168.240.0/20 dev br-6adf72ac0ae3 proto kernel scope link src 192.168.240.1 linkdown Which of the following is causing the issue?

    A. The web server's interface has no link.
    B. The default route on the web server is incorrect.
    C. HTTPS traffic is not allowed through the web server firewall.
    D. User IP addresses are rejected by the firewall.

  • Question 419:

    An administrator would like to securely connect to a server and forward port 8080 on a local machine to port 80 on the server. Which of the following commands should the administrator use to satisfy both requirements?

    A. ssh --L 8080: localhost:80 admin@server
    B. ssh --R 8080: localhost:80 admin@server
    C. ssh --L 80 : localhost:8080 admin@server
    D. ssh --R 80 : localhost:8080 admin@server

  • Question 420:

    A Linux administrator needs to harden a system and guarantee that the Postfix service will not run, even after a restart or system upgrade. Which of the following commands allows the administrator to fulfill the requirement?

    A. systemctl mask postfix.service
    B. systemctl disable postfix.service
    C. systemctl stop postfix.service
    D. systemctl -n restart postfix.service

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.