LX0-102 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
    :Jul 09, 2026

CompTIA LX0-102 Online Questions & Answers

  • Question 151:

    What word will complete an if statement in bash such as the following: if [ -x "$file" ]; then echo $file _____ (Please provide the missing word only).

  • Question 152:

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

    Which of the following lines is an example of a correct setting for the DISPLAY environment variable?

    A. hostname:displayname
    B. hostname:displaynumber
    C. hostname/displayname
    D. hostname/displaynumber
    E. hostname

  • Question 154:

    An administrator has a user whose account needs to be disabled but not removed. Which of the following should the administrator do?

    A. Edit /etc/gshadow and just remove the user name. and just remove the user? name.
    B. Edit /etc/passwd and change all numbers to 0.
    C. Edit /etc/shadow and remove the last field.
    D. Edit /etc/passwd and insert an * after the first : .
    E. Edit /etc/group file and put a # sign in front of the user name. sign in front of the user? name.

  • Question 155:

    To slave the NTP daemon to an external source, an administrator needs to modify the ______ variable in the /etc/ntp.conf file.

  • Question 156:

    An administrator is configuring a secured webserver, however connecting to https://127.0.0.1 is not working. The administrator runs netstat -ntl, which returns the following output: tcp 0 0 0.0.0.0:80

    0.0.0.0:* LISTEN What port should be listening before a successful connection is possible? (Provide only the numerical value of the port).

  • Question 157:

    What is the command to delete the default gateway from the system IP routing table? (Please specify the complete command with arguments, please no duplicate answers in this field.)

  • Question 158:

    Which of the following commands allows an administrator to make a shell variable visible to subshells?

    A. export $VARIABLE
    B. export VARIABLE
    C. set $VARIABLE
    D. set VARIABLE
    E. env VARIABLE

  • Question 159:

    Of the ways listed, which is the best way to temporarily suspend a single user's ability to interactively login?

    A. Add the user name to /etc/nologin.
    B. Change the user's password.
    C. Change the user name in /etc/passwd.
    D. Use chage to expire the user account.
    E. Place the command logout in the user's profile.

  • Question 160:

    An administrator suspects that a gateway machine on the network has failed but they are unsure which machine. Which of the following commands will help locate the problem?

    A. ps
    B. netstat
    C. nslookup
    D. ifconfig
    E. traceroute

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.