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

    A Linux administrator added storage to an XFS-formatted filesystem at /dev/mapper/vgslash-lvLog device using the LVM tools. However, the additional space does not show up when the administrator runs the df - h command. Which of the following commands should the administrator run to resolve this issue?

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

  • Question 192:

    A systems administrator would like to back up all of the'. conf' files on a server The administrator runs the command:

    Find / --name `'*conf'' > backup,tar

    After investigating the backup, tar file the administrator realizes that the contents of the configuration files were not backed up property. Which of the following would BEST accomplish this task?

    A. find / -name ''*conf'' | xargs -- verbose tar xvf backup,tar
    B. find/ -name ''*conf'' exec echo { } \; > backup.tar
    C. find / -name ''*conf'' | cpio -o --format=tar > backup.tar
    D. tar -jtf -

  • Question 193:

    A Linux administrator needs to set permissions on an application with the following parameters:

    1.

    The owner of the application should be able to read, write, and execute the application.

    2.

    Members of the group should be able to read and execute the application.

    3.

    Everyone else should not have access to the application.

    Which of the following commands would BEST accomplish these tasks?

    A. chmod 710
    B. chmod 730
    C. chmod 750
    D. chmod 760

  • Question 194:

    A junior systems administrator needs to schedule a backup script named /scripts/backup.sh and make the correct changes to the crontab. Which of the following crontab entries would run the script every Monday at 2:05 a.m.?

    A. 1 * * 5 2 /scripts/backup.sh
    B. 2 5 * * 1 /scripts/backup.sh /scripts/backup.sh
    C. 5 2 * * 1
    D. 1 * * 2 5 /scripts/backup.sh
    E. 5 2 * * 0 /scripts/backup.sh

  • Question 195:

    Users are reporting collaborate.company.com is inaccessible from the user VLAN, but there is no issue connecting to the system's web page from the DMZ. Given the following outputs from commands run on the system:

    Which of the following explains why users are unable to access the system from the user VLAN, and how can the administrator remediate this issue?

    A. Users cannot access the system because the IP subnet mask is /24. The remediation for this issue is to set the IP subnet mask to /16.
    B. Users cannot access the system because the DNS server has the incorrect IP address. The remediation for this issue is to edit the DNS configuration to point to the correct IP.
    C. Users cannot access the system because the connectivity port is running on the incorrect IP. The remediation for this issue is to edit the configuration file to listen on all interfaces.
    D. Users cannot access the system because the default gateway has the wrong interface. The remediation for this issue is to set the default gateway to the proper interface.

  • Question 196:

    A junior administrator issues the following commands on a Linux server:

    The next day, the junior administrator is unable to edit the file. Which of the following would resolve this issue?

    A. Chmod 666 /home/junior_admin/tasklist
    B. Chmod $+x /home/junior_admin/tasklist
    C. Chmod g+s /home/junior_admin/tasklist
    D. Chmod o+rwx /home/junior_admin/tasklist

  • Question 197:

    A system administrator is investigating why user3 cannot log in using SSH to one of the servers.

    An attempt to log in results in the following:

    Which of the following commands should the systems administrator execute to allow user3 log in to the server?

    A. Restorecon /bin/rssh
    B. Passwd/-u user3
    C. Usermod/ -s /bin/sh user3
    D. Setfac1/ bin/rssh

  • Question 198:

    SIMULATION

    A junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior

    administrator from running Apache.

    INSTRUCTIONS

    Install Apache and start the service. Verify that the Apache service is running with the defaults.

    Typing "help" in the terminal will show a list of relevant commands.

    If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

    CentOS Command Prompt

    A. See explanation below

  • Question 199:

    An administrator finds a text file that is using too much disk space. The administrator runs lsof | grep bigfile.txt and gets the following return:

    Which of the following should the administrator do NEXT to prepare to delete the file and free up disk space?

    A. pkill app.py
    B. logout --force comptia
    C. kill -9 7339
    D. kill -HUP 12288

  • Question 200:

    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

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.