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

    A Linux administrator is updating the file that contains the addresses of the software and update repositories on an Ubuntu system. Which of the following files needs to be edited to accomplish this task?

    A. /etc/apt/sources.list
    B. /etc/apt/listchanges.conf
    C. /etc/yum/yum.conf
    D. /etc/dnf/dnf.conf

  • Question 252:

    An administrator needs to stop a foreground process in between its execution in a terminal. Which of the following should the administrator use?

    A. Ctrl+D
    B. Ctrl+F
    C. Ctrl+Z
    D. Ctrl+C

  • Question 253:

    After connecting to a remote host via SSH, an administrator attempts to run an application but receives the following error:

    [user@workstation ~]$ ssh admin@srv1

    Last login: Tue Mar 29 18:03:34 2022

    [admin@srvl ~] $ /usr/local/bin/config_manager

    Error: cannot open display:

    [admin@srv1 ~] $

    Which of the following should the administrator do to resolve this error?

    A. Disconnect from the SSH session and reconnect using the ssh -x command.
    B. Add Options X11 to the /home/admin/.ssh/authorized_keys file.
    C. Open port 6000 on the workstation and restart the firewalld service.
    D. Enable X11 forwarding in /etc/ssh/ssh_config and restart the server.

  • Question 254:

    A Linux engineer is setting the sticky bit on a directory called devops with 755 file permission. Which of the following commands will accomplish this task?

    A. chown -s 755 devops
    B. chown 1755 devops
    C. chmod -s 755 devops
    D. chmod 1755 devops

  • Question 255:

    An administrator needs to get network information from a group of statically assigned workstations before they are reconnected to the network. Which of the following should the administrator use to obtain this information?

    A. ip show
    B. ifcfg --a
    C. ifcfg --s
    D. i fname --s

  • Question 256:

    A new application container was built with an incorrect version number. Which of the following commands should be used to rename the image to match the correct version 2.1.2?

    A. docker tag comptia/app:2.1.1 comptia/app:2.1.2
    B. docker push comptia/app:2.1.1 comptia/app:2.1.2
    C. docker rmi comptia/app:2.1.1 comptia/app:2.1.2
    D. docker update comptia/app:2.1.1 comptia/app:2.1.2

  • Question 257:

    A systems administrator is reconfiguring existing user accounts in a Linux system. Which of the following commands should the administrator use to include "myuser" in the finance group?

    A. groupadd finance myuser
    B. groupmod finance myuser
    C. useradd -g finance myuser
    D. usermod -aG finance myuser

  • Question 258:

    A Linux administrator is installing a web server and needs to check whether web traffic has already been allowed through the firewall. Which of the following commands should the administrator use to accomplish this task?

    A. firewalld query-service-http
    B. firewall-cmd --check-service http
    C. firewall-cmd --query-service http
    D. firewalld --check-service http

  • Question 259:

    A systems administrator created a new Docker image called test. After building the image, the administrator forgot to version the release. Which of the following will allow the administrator to assign the v1 version to the image?

    A. docker image save test test:v1
    B. docker image build test:vl
    C. docker image tag test test:vl
    D. docker image version test:v1

  • Question 260:

    A hardened physical Linux system allows regular, unprivileged users to remotely connect to the server using SSH only. No sudo tool has been installed. Which of the following should the Linux administrator use to perform administrative tasks on this host? (Select two).

    A. Create an SSH key and copy it to the remote server to allow passwordless login
    B. Access the server's physical console and use the root user's password to log in
    C. Install the telnet server on this system to be able to use a root account
    D. Use the su command and enter the root user's password
    E. Install the sudo command using the unprivileged user's account
    F. Add the user to the wheel group

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.