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

    A junior systems administrator is scanning archive.tarfiles with an antivirus scanner. The administrator is given the following tasks:

    1.

    List all files that are in the archive.tarfiles.

    2.

    Extract all files from the archive.tarfiles.

    Which of the following actions should be performed to meet these requirements? (Choose two.)

    A. tar -tvf archive.tar

    B. tar -xf archive.tar

    C. tar -A archive.tar

    D. tar -av archive.tar

    E. tar -r archive.tar

    F. tar -uvz archive.tar

  • Question 92:

    A junior systems administrator has generated a PKI certificate for SSH sessions. The administrator would like to configure authentication without passwords to remote systems. Which of the following should the administrator perform?

    A. Add the content of id_rsa.pub file to the remote system ~/.ssh/authorized_keys location.

    B. Add the content of id_rsa file to the remote system ~/.ssh/authorized_keys location.

    C. Add the content of id_rsa file to the remote system ~/.ssh/known_hosts location.

    D. Add the content of id_rsa.pub file to the remote system ~/.ssh/known_hosts location.

  • Question 93:

    An issue was discovered on a testing branch of a Git repository. A file was inadvertently modified and needs to be reverted to the master branch version. Which of the following is the BEST option to resolve the issue?

    A. git branch -b master file

    B. git merge master testing

    C. git stash branch master

    D. git checkout master -- file

  • Question 94:

    In which of the following Linux GUI environments would the Konsole application MOST likely be found?

    A. Gnome

    B. KDE

    C. Cinnamon

    D. Unity

    E. MATE

  • Question 95:

    A new user has been added to a Linux machine. Which of the following directories would contain the user's default files?

    A. /etc/login.defs

    B. /etc/passwd

    C. /etc/skel

    D. /etc/inittab

  • Question 96:

    A systems administrator wants to disable the Linux Kernel WatchDog Timer Driver for security purposes. Which of the following will accomplish this task?

    A. Add blacklist watchdog to the /etc/modprobe.d/blacklist file.

    B. Rename the /etc/modprobe.d/watchdog file to watchdog.off instead.

    C. Remove the watchdog=1 from the /usr/modules/watchdog.conf file.

    D. Add watchdog=0 to the /etc/modprobe.conf file.

  • Question 97:

    During the final step of staging new Linux hardware, GRUB2 is installed to the system drive. Which of the following BEST describes the role of GRUB2 in a new Linux installation?

    A. It provides a menu for creating administrator task shortcuts.

    B. It provides a menu for running special shell scripts.

    C. It provides a method to partition a hard drive.

    D. It provides a method to pass parameters to the Linux kernel on startup.

  • Question 98:

    A site reliability engineer updated the latest configuration management scripts and committed them to a workstream called either test or patch. A Linux administrator wants to ensure these latest workstreams are able to be retrieved to the server. Which of the following is the BEST Git attribute to use?

    A. branch

    B. fetch

    C. log

    D. pull

  • Question 99:

    An administrator is reviewing suspicious activity on a server and needs to determine which users logged into the system within the past 24 hours. Which of the following commands should the administrator run to determine this?

    A. last

    B. who

    C. id

    D. usermod

  • Question 100:

    A junior administrator is configuring local name lookups for fully qualified domain names in an isolated environment. The administrator is given a checklist and must accomplish the following tasks:

    1.

    Add localhost with loopback address.

    2.

    Add 192.168.192.12/24 to resolve to database01.comptia.org

    Given this scenario, which of the following steps should the administrator perform to accomplish these tasks?

    A. Open the /etc/nsswitch.conf file with a file editor and add the following lines:

    127.0.0.1 localhost

    192.168.192.12 database01.comptia.org

    B. Open the /etc/dhcpd.conf file with a file editor and add the following lines:

    127.0.0.1 localhost

    192.168.192.12 database01.comptia.org

    C. Open the /etc/hosts file with a file editor and add the following lines:

    127.0.0.1 localhost

    192.168.192.12 database01.comptia.org

    D. Open the /etc/network file with a file editor and add the following lines:

    127.0.0.1 localhost

    192.168.192.12 database01.comptia.org

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.