XK0-006 Exam Details

  • Exam Code
    :XK0-006
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :178 Q&As
  • Last Updated
    :Jul 14, 2026

CompTIA XK0-006 Online Questions & Answers

  • Question 61:

    An administrator has generated an RSA SSH key pair to log in to a remote server. After copying the public key and attempting to log in, the administrator sees the following message:

    [email protected]: Permission denied (publickey,password)

    After seeing the message, the administrator attempts to connect using ssh -v [email protected] and notices the following debug output:

    debug1: send_pubkey_test: no mutual signature algorithm Which of the following actions should the administrator take first to remediate this issue?

    A. Issue systemctl restart sshd on the local server.
    B. Create a new key pair by running ssh-keygen -t ecdsa.
    C. Set PermitRootLogin yes in the /etc/ssh/sshd_config file.
    D. Update permissions on the /home/admin/.ssh directory to 700 on the remote server.

  • Question 62:

    A Linux administrator is configuring Apache on a system and needs to allow the service to start after every startup.

    Which of the following commands will allow the Linux administrator to accomplish this task while starting the service at the same time?

    A. systemctl mask --state=active httpd
    B. systemctl start --runtime boot httpd
    C. systemctl set-property restart httpd
    D. systemctl enable --now httpd

  • Question 63:

    Which of the following can reduce the attack surface area in relation to Linux hardening?

    A. Customizing the log-in banner
    B. Reducing the number of directories created
    C. Extending the SSH startup timeout period
    D. Enforcing password strength and complexity

  • Question 64:

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

    A technician wants to temporarily use a Linux virtual machine as a router for the network segment 10.10.204.0 /24. Which of the following commands should the technician issue? (Select three).

    A. echo "1" > /proc/sys/net/ipv4/ip_forward
    B. iptables -A FORWARD -j ACCEPT
    C. iptables -A PREROUTING -j ACCEPT
    D. iptables -t nat -s 10.10.204.0/24 -p tcp -A PREROUTING -j MASQUERADE
    E. echo "0" > /proc/sys/net/ipv4/ip_forward
    F. echo "1" > /proc/net/tcp
    G. iptables -t nat -s 10.10.204.0/24 -A POSTROUTING -j MASQUERADE
    H. iptables -t nat -A PREROUTING -j MASQUERADE

  • Question 66:

    A Linux administrator receives a ticket stating that end users are unable to access the company's internal cloud server. The administrator executes the following command:

    ping usl.com

    Result:

    ping: cannot resolve usl.com: Unknown Host

    Which of the following files needs to be modified to allow end users to access usl.com?

    A. /etc/resolv.conf
    B. /etc/interfaces
    C. /etc/hosts.allow
    D. /etc/hostname

  • Question 67:

    An administrator wants to copy files from /opt/tools to the home directory at /home/admin.

    Which of the following should the administrator run?

    A. mkdir -p /home/admin/tools
    B. cp -R /opt/tools ~
    C. cd /opt/tools; rsync /home/admin
    D. scp /opt/tools localhost:/

  • Question 68:

    An administrator wants to search a file named myFile and look for all occurrences of strings containing at least five characters , where characters two and five are i , but character three is not b .

    Which of the following commands should the administrator execute to get the intended result?

    A. grep .a*^b-.a myFile
    B. grep .a., [a] myFile
    C. grepa^b*a myFile
    D. grep .i[^b].i myFile

  • Question 69:

    Which of the following is a protocol for accessing distributed directory services containing a hierarchy of users, groups, machines, and organizational units?

    A. SMB
    B. TLS
    C. LDAP
    D. KRB-5

  • Question 70:

    Which of the following is a characteristic of Python 3?

    A. It is closed source.
    B. It is extensible through modules.
    C. It is fully backwards compatible.
    D. It is binary compatible with Java.

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-006 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.