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

    A systems administrator is receiving tickets from users who cannot reach the application app that should be listening on port 9443/tcp on a Linux server.

    To troubleshoot the issue, the systems administrator runs netstat and receives the following output:

    Based on the information above, which of the following is causing the issue?

    A. The IP address 0.0.0.0 is not valid.
    B. The application is listening on the loopback interface.
    C. The application is listening on port 1234.
    D. The application is not running.

  • Question 212:

    A network administrator issues the dig www.comptia.org command and receives an NXDOMAIN response. Which of the following files should the administrator check first?

    A. /etc/resolv.conf
    B. /etc/hosts
    C. /etc/sysconfig/network-scripts
    D. /etc/nsswitch.conf

  • Question 213:

    A systems administrator is gathering information about a file type and the contents of a file. Which of the following commands should the administrator use to accomplish this task?

    A. file filename
    B. touch filename
    C. grep filename
    D. lsof filename

  • Question 214:

    A developer reported an incident involving the application configuration file /etc/httpd/conf/httpd.conf that is missing from the server. Which of the following identifies the RPM package that installed the configuration file?

    A. rpm -qf /etc/httpd/conf/httpd.conf
    B. rpm -ql /etc/httpd/conf/httpd.conf
    C. rpm --query /etc/httpd/conf/httpd.conf
    D. rpm -q /etc/httpd/conf/httpd.conf

  • Question 215:

    A systems administrator identifies multiple processes in a zombie state.

    Which of the following signals would be best for the administrator to send to the PPID?

    A. SIGTERM
    B. SIGHUP
    C. SIGQUIT
    D. SIGSTOP

  • Question 216:

    A systems administrator is configuring a Linux system so the network traffic from the internal network 172.17.0.0/16 going out through the eth0 interface would appear as if it was sent directly from this interface. Which of the following commands will accomplish this task?

    A. iptables -A POSTROUTING -s 172.17.0.0/16 -o eth0 -j MASQUERADE
    B. firewalld -A OUTPUT -s 172.17.0.0/16 -o eth0 -j DIRECT
    C. nmcli masq-traffic eth0 -s 172.17.0.0/16 -j MASQUERADE
    D. ifconfig -- nat eth0 -s 172.17.0.0/16 -j DIRECT

  • Question 217:

    The users of a Linux system are unable to use one of the application filesystems. The following outputs have been provided: bash $ cd /app $ touch file touch: cannot touch 'file': Readonly file system

    Output 2 /dev/sdcl on /app type ext4 (ro,relatime,seclabel,data=ordered) Output 3 /dev/sdcl /app ext4 defaults 0 0 Output 4 [302.048075] Buffer I/O error on dev sdcl, logical block 0, async page read [302.048490] EXT4-fs (sdcl): Attempt to read block from filesystem resulted in short read while trying to re-open /dev/sdcl Which of the following actions will resolve this issue?

    A. umount /app fsck -y /dev/sdcl mount /app
    B. xfs_repair /dev/sdcl mount -o rw,remount /app
    C. umount /app xfs_repair /dev/sdcl mount /app
    D. fsck -y /dev/sdcl mount -o rw,remount /app

  • Question 218:

    Which of the following commands will display the operating system?

    A. uname -n
    B. uname -s
    C. uname -o
    D. uname -m

  • Question 219:

    A systems administrator wants to be sure the sudo rules just added to /etc/sudoers are valid. Which of the following commands can be used for this task?

    A. visudo -c
    B. test -f /etc/sudoers
    C. sudo vi check
    D. cat /etc/sudoers | tee test

  • Question 220:

    An engineer needs to insert a character at the end of the current line in the vi text editor. Which of the following will allow the engineer to complete this task?

    A. p
    B. r
    C. bb
    D. A
    E. i

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.