XK0-004 Exam Details

  • Exam Code
    :XK0-004
  • Exam Name
    :CompTIA Linux+ Certification
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :516 Q&As
  • Last Updated
    :Aug 23, 2023

CompTIA XK0-004 Online Questions & Answers

  • Question 281:

    A Linux administrator wants to obtain a list of files and subdirectories in the /etc directory that contain the word "services". Once the files and subdirectories are discovered, they should be listed alphabetically in the /var/tmp/foundservices file. Which of the following shell scripts will accomplish this task?

    A. #/bin/bash find /etc -name services | sort > /var/tmp/foundservices
    B. #/bin/bash locate /etc -sort -name services > /var/tmp/foundservices
    C. #/bin/bash find -name services -sort
    D. #/bin/bash find /etc -name services -sort > /var/tmp/foundservices

  • Question 282:

    Users are receiving permission-denied messages when trying to access a spreadsheet file within the company's filesystem. A Linux administrator receives a ticket and begin to investigate the following output:

    Which of the following command would produce the presented output?

    A. Top
    B. nice
    C. grep
    D. isof

  • Question 283:

    After running an Nmap scan on a local area network, a penetration tester notices several older Linux servers have port 23 open Which of the following should the systems administrator do as a secunty best practice?

    A. Use a non-standard port for Telnet
    B. Disable and umnstall the Telnet service
    C. Ensure the kernels are up to date with the latest patches
    D. Configure the firewall to allow Telnet access only from trusted networks

  • Question 284:

    An administrator receives a warning about a filesystem filling up, and then identifies a large file located at / tmp/largelogfile. The administrator deletes the file, but no space is recovered on the filesystem.

    Which of the following commands would BEST assists the administrator in identifying the problem?

    A. lsof | grep largelogfile
    B. pkill /tmp/largelogfile
    C. pgrep largelogfile
    D. ps -ef | grep largelogfile

  • Question 285:

    A technician recently installed Linux on a desktop computer. The desktop has two graphics cards from two different vendors. One of the graphics cards works, but the other does not. Which of the following commands should the technician use to start troubleshooting this issue?

    A. Ismod
    B. Vmstat
    C. Gdm
    D. startx

  • Question 286:

    A Linux administrator has installed a web application firewall in front of a web server running on HTTP port 8080 and successfully started the HTTP server. However, after opening the application URL in an Internet browser, the administrator discovered that the application does not work. The administrator performed the following diagnostic steps:

    Output of sysctl -a command:

    Output of iptables -L command:

    Output of netstat -nltop | grep "8080":

    Which of the following is the NEXT step the administrator should perform to permanently fix the issue at the kernel level?

    A. sysctl -w net.ipv4.ip_forward=1 then run sysctl -w /etc/sysctl.conf to enable the change
    B. Edit /etc/sysctl.conf file and add net.ipv4.ip_forward = 1 then run sysctl -p /etc/ sysctl.conf to enable the change
    C. Add iptables rule iptables -A INPUT -m state --state NEW -p tcp --dport 8080 -j then restart httpd daemon
    D. Add iptables rule iptables -A FORWARD-m state --state NEW -p tcp --dport 8080 -j ACCEPT then restart httpd daemon

  • Question 287:

    After cloning a remote repository, a new feature of that project needs to be developed and integrated into the next major release. Which of the following is the first Git operation to run to begin working on this new feature immediately after the clone?

    A. merge
    B. init
    C. diff
    D. branch

  • Question 288:

    An administrator received a request from a security officer to eliminate a blacklisting set called internal-blocked the company is using in the iptables firewall. Which of the following commands will complete the task?

    A. ipset swap internal-blocked none
    B. ipset destroy internal-blocked
    C. ipset del internal-blocked
    D. ipset remove internal-blocked

  • Question 289:

    A Linux administrator rs creating a VM to install a third-party tool for scanning me network. The vendor hat provided an OVA file for installing the software.

    Which of the foiowing BEST descnoes the OVA file?

    A. A VM image that contains the prelnstalled and configured vendor software
    B. Software installation media that will be mounted and installed using a kickstart file
    C. An application container that is self-contained and allows the vendor software to run anywhere
    D. Vendor planning and installation documentation guidance to prepare the installation

  • Question 290:

    A Linux engineer is troubleshooting a newly added SCSI device for a Linux server that needed more disk space without rebooting. The engineer discovers that the new device is not visible by the Linux kernel in fdisk -l output. Which of the following commands should be used to rescan the entire SCSI bus?

    A. echo "- - -" > /sys/class/scsi_host/host0/scan
    B. echo ' ' > /sys/class/scsi_host/host0/scan
    C. echo "- - -" > /sys/scsi/scsi_host/host0/scan
    D. echo "scan" > /sys/class/scsi_host/host0/scan

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