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

    A server administrator notices that one of the servers cannot connect to its gateway, which has the IP 10.10.10.1.

    Which of the following commands should the administrator execute to determine the default gateway of the server?

    A. route -n
    B. ip a default-gw
    C. ifconfig
    D. nslookup

  • Question 142:

    An organization wants to consolidate its entire user information in centralized storage using an X.500- based protocol. Which of the following protocols should be used for this implementation?

    A. RADIUS
    B. LDAP
    C. DNS
    D. DHCP

  • Question 143:

    A Linux administrator retrieved a repository of files from a Git server using git clone. The administrator wants to see if a configuration file was added to the repository. Which of the following Git arguments should be used to see the recent modifications?

    A. fetch
    B. log
    C. init
    D. pull

  • Question 144:

    A Linux administrator needs to back up the folder /usr/domain, and the output must be a gzip compressed tar. Which of the following commands should be used?

    A. tar -cv domain.tar.gz /usr/domain
    B. tar -cvf /usr/domain domain.tar.gz
    C. tar -czvf domain.tar.gz /usr/domain
    D. tar -cxzv /usr/domain domain.tar.gz

  • Question 145:

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

    An administrator is adding an existing user named `'buddy'' to the Apache group. Which of the following should the administrator perform to accomplish this task?

    A. sseradd 璯 apache buddy
    B. ssermod 璯 apche buddy
    C. sudo useradd 璯 apache buddy
    D. sudo usermod 璯 apachebuddy

  • Question 147:

    DRAG DROP

    As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following:

    Add relevant content to /tmp/script.sh, so that it finds and compresses rotated files in /var/log without recursion.

    INSTRUCTIONS

    Fill the blanks to build a script that performs the actual compression of rotated log files.

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

  • Question 148:

    An administrator needs to see the type of CPU that a server is running. Which of the following files contains this information?

    A. /proc/cpuinfo
    B. /etc/devices/info.conf
    C. /dev/proc/cpu
    D. /sys/dev/cpuinfo

  • Question 149:

    The following error is encountered when running a script:

    Which of the following is the cause of this error?

    A. Script.sh was not added to the PATH
    B. The $ ! line is incorrect
    C. Script.sh is missing the executable bit.
    D. The file script. sh does not exist.
    E. Bash is not installed on the system

  • Question 150:

    An administrator is troubleshooting an application that has failed to start after the server was rebooted. Noticing the data volume is not mounted, the administrator attempts to mount it and receives this error:

    Upon checking the logical volume status, the administrator receives this information:

    Which of the following can be said about the data logical volume, and how can this problem be resolved?

    A. The logical volume is not active. The administrator should make it active with lvchange -ay /dev/ datavg/datalv and then mount it.
    B. The logical volume file system has become corrupted. The administrator should repair it with xfs_repair /dev/datavg/datalv and then mount it.
    C. The logical volume is OK but the /dev special files are missing. The administrator should recreate them by running /dev/MAKEDEV.
    D. The file system is read-only. The administrator should remount it as read-write with the command mount -o remount.rw /data.

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.