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

    Which of the following outputs will the below command produce? seq 1 5 20

    A. 1 6 11 16

    B. 1 5 10 15

    C. 1 2

    D. 2 3 4 5

    E. 5 10 15 20

  • Question 142:

    When using ssh, which of the following can an administrator do to recover a lost passphrase for a DSA or RSA authentication key?

    A. Run the ssh-keygen command.

    B. Run the ssh --recover command.

    C. A lost passphrase cannot be recovered.

    D. Decrypt the authentication key with gpg.

    E. Decrypt the authentication key with ssh --decrypt.

  • Question 143:

    Which of the following crontab entries could be used to set the system time at regular intervals?

    A. 1 0 * * * date $d $t $24

    B. 1 0 * * * settime $d $t $24

    C. 1 0 * * * date

    D. 1 0 * * * /usr/sbin/runcron date

    E. 1 0 * * * /usr/sbin/ntpdate ntp1.digex.net > /dev/null 2>and1

  • Question 144:

    On a system running the K Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?

    A. When KDM starts

    B. When a user's X session exists

    C. When KDM crashes

    D. When X is restarted

    E. When X crashes

  • Question 145:

    Which of the following is the BEST way to temporarily suspend a user's ability to interactively login?

    A. Changing the user's UID.

    B. Changing the user's password.

    C. Changing the user's shell to /bin/false.

    D. Removing the user's entry in /etc/passwd.

    E. Placing the command logout in the user's profile.

  • Question 146:

    To test a shell script called myscript, the environment variable FOOBAR must be removed temporarily. How can this be done?

    A. unset -v FOOBAR

    B. set -a FOOBAR=""

    C. env -u FOOBAR myscript

    D. env -i FOOBAR myscript

  • Question 147:

    Which of the following commands is used to display user resource limits?

    A. uname

    B. limit -a

    C. usrlmt

    D. ulimit

  • Question 148:

    Which of the following lines would an administrator find in the file /etc/nsswitch.conf?

    A. order hosts,bind

    B. 192.168.168.4 dns-server

    C. hosts: files dns

    D. domain mycompany.com

  • Question 149:

    Which of the following commands can an administrator use to change a user's password expiry information? (Select THREE).

    A. usermod

    B. passwd

    C. chattr

    D. chage

    E. chsh

  • Question 150:

    Which of the following statements is true regarding the below /etc/resolv.conf file? search example.com

    127.0.0.1 208.77.188.166

    A. There is a syntax error.

    B. If DNS queries to the localhost fail, the server 208.77.188.166 will be queried.

    C. example.com will be appended to all host lookups.

    D. The DNS servers at 127.0.0.1 and 208.77.188.166 will be queried in a round robin fashion.

    E. The DNS server with the shortest ping time will be queried first. If the lookup fails, the second server will be queried.

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.