Exam Details

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

CompTIA CompTIA Certifications XK0-005 Questions & Answers

  • Question 51:

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

    A Linux systems administrator needs to copy files and directories from Server A to Server B.

    Which of the following commands can be used for this purpose? (Select TWO)

    A. rsyslog

    B. cp

    C. rsync

    D. reposync

    E. scp

    F. ssh

  • Question 53:

    Which of the following directories is the mount point in a UEFI system?

    A. /sys/efi

    B. /boot/efi

    C. /efi

    D. /etc/efi

  • Question 54:

    A user is unable to remotely log on to a server using the server name server1 and port 22. The Linux engineer troubleshoots the issue and gathers the following information: Which of the following is most likely causing the issue?

    A. server 1 is not in the DNS.

    B. sshd is running on a non-standard port.

    C. sshd is not an active service.

    D. serverl is using an incorrect IP address.

  • Question 55:

    Users are reporting that writes on a system configured with SSD drives have been taking longer than expected, but reads do not seem to be affected. A Linux systems administrator is investigating this issue and working on a solution. Which of the following should the administrator do to help solve the issue?

    A. Run the corresponding command to trim the SSD drives.

    B. Use fsck on the filesystem hosted on the SSD drives.

    C. Migrate to high-density SSD drives for increased performance.

    D. Reduce the amount of files on the SSD drives.

  • Question 56:

    A Linux administrator wants to prevent the httpd web service from being started both manually and automatically on a server. Which of the following should the administrator use to accomplish this task?

    A. systemctl mask httpd

    B. systemctl disable httpd

    C. systemctl stop httpd

    D. systemctl reload httpd

  • Question 57:

    A systems administrator requires that all files that are created by the user named web have read-only permissions by the owner. Which of the following commands will satisfy this requirement?

    A. chown web:web /home/web

    B. chmod -R 400 /home/web

    C. echo "umask 377" >> /home/web/.bashrc

    D. setfacl read /home/web

  • Question 58:

    An administrator runs ping comptia.org. The result of the command is:

    ping: comptia.org: Name or service not known

    Which of the following files should the administrator verify?

    A. /etc/ethers

    B. /etc/services

    C. /etc/resolv.conf

    D. /etc/sysctl.conf

  • Question 59:

    A user generated a pair of private-public keys on a workstation. Which of the following commands will allow the user to upload the public key to a remote server and enable passwordless login?

    A. scp ~/.ssh/id_rsa user@server:~/

    B. rsync ~ /.ssh/ user@server:~/

    C. ssh-add user server

    D. ssh-copy-id user@server

  • Question 60:

    Rugged appliances are small appliances with ruggedized hardware and like Quantum Spark appliance they use which operating system?

    A. Centos Linux

    B. Gaia embedded

    C. Gaia

    D. Red Hat Enterprise Linux version 5

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.