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

    Which of the following can be used as a secure way to access a remote termi-nal?

    A. TFTP
    B. SSH
    C. SCP
    D. SFTP

  • Question 22:

    A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers. Which of the following commands can be used to copy a key file to remote servers? (Choose two.)

    A. wget
    B. ssh-keygen
    C. ssh-keyscan
    D. ssh-copy-id
    E. ftpd
    F. scp

  • Question 23:

    A web application that uses a database for managing logins needs to be set up so that the database is running before the web server starts. A Linux administrator, who is troubleshooting the issue, reviews systemd unit files:

    Which of the following should the Linux administrator do to ensure the database starts first?

    A. Enable the HTTPD service using the httpd command.
    B. Add mariadb.service to the Wants for the HTTPD service configuration
    C. Add Before=httpd.service to the MariaDB configuration.
    D. Add mariadb. service to the HTTPD service configuration.

  • Question 24:

    A Linux administrator wants to find out whether files from the wget package have been altered since they were installed. Which of the following commands will provide the correct information?

    A. rpm -i wget
    B. rpm -qf wget
    C. rpm -F wget
    D. rpm -V wget

  • Question 25:

    After system startup, the X Window System GUI login interface is not displaying. Which of the following commands ensures that the GUI is started during the system startup process?

    A. systemctl isolate graphical.target
    B. systemctl unmask xwindow.service
    C. systemctl enable xwindow.service
    D. systemctl set-default graphical.target

  • Question 26:

    A Linux administrator is configuring a log collector agent to monitor logs in /var/log/collector. The agent is reporting that it cannot write to the directory. The agent runs as the logger user account. The administrator runs a few commands and reviews the following output: makefile Output 1: drwxr-xr-x. 1 root root 0 Oct 20:13 collector Output 2: file: /var/log/collector owner: root

    group: root user::rwx group::r-x

    mask::rwx

    other::r-x

    Output 3:

    uid=1010(logger) gid=1010(monitor) groups=1010(monitor)

    Which of the following is the best way to resolve the issue?

    A. setfacl -Rm u:logger:rwx /var/log/collector
    B. usermod -aG root logger
    C. chmod 644 /var/log/collector
    D. chown -R logger/var/log

  • Question 27:

    An administrator transferred a key for SSH authentication to a home directory on a remote server. The key file was moved to .ssh/authorized_keys location in order to establish SSH connection without a password. However, the SSH command still asked for the password.

    Given the following output:

    Which of the following commands would resolve the issue?

    A. restorecon .ssh/authorized_keys
    B. ssh_keygen -t rsa -o .ssh/authorized_keys
    C. chown root:root .ssh/authorized_keys
    D. chmod 600 .ssh/authorized_keys

  • Question 28:

    While inspecting a recently compromised Linux system, the administrator identified a number of processes that should not have been running:

    Which of the following commands should the administrator use to terminate all of the identified processes?

    A. pkill -9 -f "upload*.sh"
    B. kill -9 "upload*.sh"
    C. killall -9 -upload*.sh"
    D. skill -9 "upload*.sh"

  • Question 29:

    A Linux administrator is creating a primary partition on the replacement hard drive for an application server. Which of the following commands should the administrator issue to verify the device name of this partition?

    A. sudo fdisk /dev/sda
    B. sudo fdisk -s /dev/sda
    C. sudo fdisk -l
    D. sudo fdisk -h

  • Question 30:

    A systems administrator intends to use a UI-JID to mount a new partition per-manently on a Linux system. Which of the following commands can the adminis-trator run to obtain information about the UUlDs of all disks attached to a Linux system?

    A. fcstat
    B. blkid
    C. dmsetup
    D. Isscsi

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.