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

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

    An administrator wants to know the amount of memory installed on a Linux server. Which of the following commands can be used to accomplish this task?

    A. cat /sys/proc/meminfo

    B. cat /proc/meminfo

    C. cat /proc/sys/meminfo

    D. cat /sys/meminfo

  • Question 83:

    A Linux administrator is helping the security team troubleshoot an SELinux policy violation incident. Which of the following would be the BEST utility command to display SELinux violation and AVC denial messages?

    A. journalctl | grep sealert

    B. sealert -a /var/log/audit/audit.log

    C. aureport | grep AVC

    D. cat /var/log/messages | grep selinux

  • Question 84:

    A junior administrator is installing kernel modules. The administrator is given a checklist that outlines the following tasks to be completed:

    1.

    Display currently installed module version.

    2.

    Display which modules loaded at startup.

    Which of the following commands would be used to accomplish these tasks? (Choose two.)

    A. cat /etc/issue

    B. insmod

    C. lsmod

    D. rmmod

    E. depmod

    F. dmesg

  • Question 85:

    A systems administrator has scheduled a system update for a server. The update includes a resynchronization of the package database and updates to the current packages and the system distribution packages. Which of the following commands contains the proper order of this update?

    A. apt-get upgrade, apt-get dist-upgrade, apt-get update

    B. apt-get update, apt-get upgrade, apt-get dist-upgrade

    C. apt-get dist-upgrade, apt-get upgrade, apt-get update

    D. apt-get update, apt-get dist-upgrade, apt-get upgrade

  • Question 86:

    An administrator receives the following message on a remote server: Cannot open display. Which of the following should the administrator have used to log in to the server?

    A. xrdp -h server.company.com

    B. ssh -X server.company.com

    C. xvnc server.company.com

    D. rdesktop server.company.com

  • Question 87:

    A junior systems administrator is tasked with providing the network_administrators group the ability to perform sudo without prompting for a password. Which of the following steps should the administrator perform to accomplish this task? (Choose two.)

    A. Use visudo to edit the /etc/sudoers file and add network_administrators to the "wheel" group

    B. Use vi to edit the /etc/sudo file and add network_administrators to the "wheel" group

    C. Provide all network_administrators with the "root" account password

    D. Add the network_administrators ALL=(ALL) NOPASSWD: ALL directive to the /etc/sudoers file

    E. Add the network_administrators =(ALL) NOEXEC: ALL directive to the /etc/sudoers file

  • Question 88:

    A storage administrator in a virtualized environment has been told by a user that there is no space left on the volume to which the user can write. However, a check reveals that there is 20GB of unused space. Which of the following explains the discrepancy?

    A. The drive is not formatted

    B. The drive is thin provisioned

    C. The drive is thick provision eager zeroed

    D. The drive space is overallocated

  • Question 89:

    A corporate server security policy states, "Ensure password hashes are not readable by non-administrative users." The administrator should check the permissions on which of the following files to ensure the server satisfies this policy?

    A. /etc/shadow

    B. /etc/passwd

    C. /etc/group

    D. /etc/security/limits.conf

  • Question 90:

    A Linux systems administrator is implementing Source Code Management for the web application server configuration files located in /etc/httpd/. Which of the following steps should the administrator perform FIRST?

    A. Clone the remote repository using `git clone'

    B. Create a new repository using `git init'

    C. Retrieve the remote changes using `git commit'

    D. Configure the directory for git using `git config'

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.