Exam Details

  • Exam Code
    :LX0-102
  • Exam Name
    :CompTIA Linux+ [Powered by LPI] Exam 2
  • Certification
    :CompTIA Linux+
  • Vendor
    :CompTIA
  • Total Questions
    :177 Q&As
  • Last Updated
    :Mar 23, 2025

CompTIA CompTIA Linux+ LX0-102 Questions & Answers

  • Question 61:

    Which of the following commands is used to hold keys during a login session to be used for automatic authentication while logging in to other machines using ssh?

    A. sshd

    B. ssh-agent

    C. ssh-keygen

    D. ssh-add

  • Question 62:

    What keyword is missing from this code sample of a shell script?

    ____ i in *.txt; do echo $i done

    A. for

    B. loop

    C. until

    D. while

  • Question 63:

    Which of the following bash options will prevent an administrator from overwriting a file with a ">"?

    A. set -o safe

    B. set -o noglob

    C. set -o noclobber

    D. set -o append

    E. set -o nooverwrite

  • Question 64:

    Which of the following is NOT contained in the locale setting of the operating system?

    A. Currency symbol

    B. Language

    C. Timezone

    D. Thousands separator

  • Question 65:

    Which of the following commands will print the exit value of the previous command to the screen in bash?

    A. echo $?

    B. echo $#

    C. echo $exit

    D. echo $status

    E. echo $and}

  • Question 66:

    Which of the following is NOT a Mail Transport Agent?

    A. exim

    B. postfix

    C. sendmail

    D. qmail

    E. mail

  • Question 67:

    A senior executive asked an administrator to change the default background of the executive's machine, which uses XDM. Which of the following files would the administrator edit to achieve this?

    A. /etc/X11/xdm/Xsetup

    B. /etc/X11/xdm.conf

    C. /etc/X11/xdm/Defaults

    D. /etc/X11/defaults.conf

  • Question 68:

    The correct crontab entry to execute the script chklog three times per month between 3 p.m. and 5 p.m.:

    A. * 3, 4, 5 1 * * chklog

    B. 3 3, 4, 5 1 * * chklog

    C. 3 15, 16, 17 * * * chklog

    D. 0 15, 16, 17 1 * * chklog

    E. * 15, 16, 17 1 * * chklog

  • Question 69:

    On a dual boot system, every time the system is booted back into Linux the time has been set backward

    by one day. Which of the following commands will correct the problem?

    A. date -d '+ 1 day'

    B. hwclock --systohc --localtime

    C. ntpdate pool.ntp.org

    D. time hwclock

  • Question 70:

    Which of the following commands should be used to print a listing of email in the system's mail queue?

    A. lpq

    B. mailq

    C. mlq

    D. sendmail -l

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 LX0-102 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.