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 CompTIA Certifications XK0-004 Questions & Answers

  • Question 271:

    An administrator needs to see a list of the system user's encrypted passwords. Which of the following Linux files does the administrator need to read?

    A. /etc/shadow

    B. /etc/skel

    C. /etc/passwd

    D. /etc/pw

  • Question 272:

    A systems administrator needs to install a new piece of hardware that requires a new driver. The driver should be manually installed. Which of the following describes the order of commands required to obtain module information, install the module, and check the log for any errors during module installation?

    A. lsmod, modprobe, modinfo

    B. modinfo, insmod, modprobe

    C. modinfo, insmod, dmesg

    D. lsmod, insmod, dmesg

  • Question 273:

    A new HTTPS web service is being deployed on a server. Which of the following commands should the Linux administrator use to ensure traffic is able to flow through the system firewall to the new service?

    A. iptables -I OUTPUT -p tcp --sport 443 -j ACCEPT

    B. iptables -A INPUT -p tcp --dport 443 -j ACCEPT

    C. iptables -I INPUT --dport 443 -j ACCEPT

    D. iptables -A OUTPUT -p tcp --dport 443 -j ACCEPT

  • Question 274:

    A systems administrator is enabling quotas on the /home directory of a Linux server. The administrator makes the appropriate edits to the /etc/fstab file and attempts to issue the commands to enable quotas on the desired directory. However, the administrator receives an error message stating the filesystem does not support quotas. Which of the following commands should the administrator perform to proceed?

    A. mount -o remount /home

    B. quotacheck -cg

    C. edquota /home

    D. quotaon /home

  • Question 275:

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

    A systems administrator observes high latency values when reaching a remote web server. Which of the following commands will help determine and isolate issues on the network side?

    A. mtr

    B. dig

    C. netstat

    D. route

  • Question 277:

    An administrator is tasked with increasing the size of the volume /dev/vg/lv to 20GB. Which of the following BEST illustrates the steps the administrator should take?

    A. vgextend -L20G /dev/vg/lv; resizelv /dev/vg/lv

    B. parted -L20G /dev/vg/lv; remount /dev/vg/lv

    C. mkfs -L20G /dev/vg/lv; tune2fs /dev/vg/lv

    D. lvextend -L20G /dev/vg/lv; resize2fs /dev/vg/lv

  • Question 278:

    Ann, a junior Linux administrator, needs to copy software from her local machine to assist in developing a software application on a remote machine with the IP address 192.168.3.22. The file needs to be placed on the /tmp directory. After downloading the RPM to the local machine, which of the following commands would be BEST to use to copy the software?

    A. scp ~/software.rpm [email protected]:/tmp

    B. scp ~/software.rpm [email protected]: /tmp

    C. wget [email protected]:/tmp -f ~/software.rpm

    D. scp [email protected] ~/software.rpm :/tmp

  • Question 279:

    Given that a company's policy states that users cannot install third-party tools on Window servers, which of the following protocols will allow a Linux GUI to connect to a Windows server?

    A. VNC

    B. NX

    C. RDP

    D. X11

  • Question 280:

    Which of the following statements BEST represents what the term "agentless" means regarding orchestration?

    A. Installation of a tool is not required on the remote system to perform orchestration tasks

    B. It facilitates version control when using infrastructure as code during orchestration

    C. It automatically removes malware from the remote system during orchestration

    D. A tool can only be accessed remotely to perform orchestration tasks

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.