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

    A Linux systems administrator is troubleshooting an issue with the /home directory running out of space. The administrator needs to determine which /home directories are using the most space. Which of the following commands should be used?

    A. du
    B. lvs
    C. df
    D. fsck

  • Question 292:

    Which of the following is considered best practices when using definition files for the provisioning of Linus servers to the cloud?

    A. Build automation
    B. Container orchestration
    C. Infrastructure as code
    D. Continuous integration

  • Question 293:

    While installing third-party software, a technician wants to monitor logs on the system continuously. Which of the following commands should the technician issue to monitor the logs?

    A. cat /var/log/kern.log
    B. grep -e /var/log/httpd/access.log
    C. head -n /var/log/secure
    D. tail -f /var/log/messages

  • Question 294:

    A systems administrator wants to disable the isofs module on the server.

    Which of the following will allow the administrator to check if the isofs module is currently in use?

    A. modprobe
    B. insmod
    C. rmmod
    D. lsmod

  • Question 295:

    Which of the following commands should a Linux administrator use to open the firewall to allow incoming database connections?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 296:

    A Linux systems administrator wants to see the current processes that are being run by each individual user who is logged on to the server. Which of the following is the BEST way to gather this information?

    A. wall
    B. who
    C. which
    D. watch

  • Question 297:

    A Linux administrator needs to change the permission on a script so that the owner has permission to execute. Which of the following BEST accomplishes this task?

    A. Chmod ug=script,sh
    B. Chmod u+x script,sh
    C. Chmod -x script,sh
    D. Chmod 0644 script,sh

  • Question 298:

    A systems administrator wants to mount an ISO to access its content. Using /mnt as a mount point, which of the following is the correct syntax?

    A. mount -o iso9660 /dev/sr0 /mnt
    B. mount -o loop -t iso /mnt
    C. mount -o loop /tmp/image.iso /mnt
    D. mount -o loop /dev/kvm /mnt

  • Question 299:

    An administrator notices the HISTSIZE variable is 50, using the commands below:

    HISTSIZE=50 export HISTSIZE The administrator rechecks the HISTSIZE value using echo HISTSIZE but gets no value. Which of the following commands should the administrator use to retrieve its value?

    A. printenv | grep $HISTSIZE
    B. echo HISTSIZE
    C. printf HISTSIZE
    D. grep $HISTSIZE

  • Question 300:

    An administrator wants to run a script on the second Monday of every month. The script should be executed at 7:00 a.m. and 1:00 p.m. Which of the following entries to the crontab will accomplish this?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

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.