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

    A user has been locked out of an account due to too many failed password attempts. Which of the following commands will unlock the user's account?

    A. pam_tally2 --user=user --reset

    B. passwd -u user -G root

    C. usermod -u user -G root

    D. chage -1 user=user --reset

  • Question 112:

    A Linux administrator looks at the /etc/timezone file and determines the need to change the time zone from California to New York temporarily. Which of the following commands will accomplish this?

    A. sed -f TZ=America/New_York

    B. cat TZ=America/New_York

    C. export TZ=America/New_York

    D. printf TZ=America/New_York

  • Question 113:

    A systems administrator notices a large number of autoloaded device modules are no longer needed and decides to do a cleanup of them. Which of the following commands will accomplish this task?

    A. rmmod -c

    B. depmod -r

    C. insmod -c

    D. modprobe -r

  • Question 114:

    A user wants to use terminal services from a Windows workstation to manage a Linux server. Which of the following should be installed on the Linux server to enable this functionality?

    A. VNC

    B. rdesktop

    C. SPICE

    D. XRDP

  • Question 115:

    On a UEFI-based system, which of the following invokes GRUB2 from the EFI command prompt?

    A. boot//EFI/grub2.efi

    B. EFI/grub2.efi

    C. /boot/EFI/grub2.efi

    D. /grub2.efi

  • Question 116:

    A user needs to modify the IP address of a laptop. Which of the following files can be used to configure the network interface named eth0?

    A. /etc/sysconfig/network/interfaces.cnf

    B. /system/config/interfaces

    C. /etc/sysconfig/network-scripts/ifcfg-eth0

    D. /system/networking/ifconfig

    E. /etc/interfaces/eth0.conf

  • Question 117:

    Using which of the following control mode commands is the correct way to substitute all occurrences of / dev/sdc with /dev/sdd while editing a file in vi?

    A. :s//dev/sdc//dev/sdd

    B. :s/\/dev\/sdc/\/dev\/sdd/g

    C. :s/\/dev\/sdc/\/dev\/sdd

    D. :%s/\/dev\/sdc/\/dev\/sdd

  • Question 118:

    A security administrator wants to display a warning banner before a user logs in. Which of the following files must be edited to make this happen?

    A. /etc/services

    B. /etc/issue

    C. /etc/hosts

    D. /etc/motd

  • Question 119:

    An administrator needs to look at a log for an application on a systemd-based system. There is no log for this application in /var/log. Which of the following is another way to view the application log on this system?

    A. tail -f /var/log/secure

    B. journalctl -u application

    C. systemctl application.service

    D. watch /var/lib/application/

  • Question 120:

    Which of the following is true about Type 2 hypervisors?

    A. Type 2 hypervisors run on top of another general purpose OS.

    B. Type 2 hypervisors are often called bare-metal or native hypervisors.

    C. Type 2 hypervisors offer a performance increase to the guests in comparison to a Type 1 hypervisor.

    D. Only Type 2 hypervisors allow direct access to CPU virtualization features.

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.