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

    Suppose that the command netstat -a hangs for a long time without producing output. An administrator might suspect:

    A. A problem with NFS

    B. A problem with DNS

    C. A problem with NIS

    D. A problem with routing

    E. That the netstat daemon has crashed

  • Question 152:

    Which of the following statements are true regarding the below syslog.conf configuration directive? (Select THREE) *.err;kern.notice;auth.notice /dev/console

    A. Severity crit messages from all facilities will be directed to /dev/console

    B. Severity notice messages from the auth facility will be directed to /dev/console

    C. Severity notice messages from the kern facility will be directed to /dev/console

    D. Severity err messages from the mail facility will be directed /dev/console

    E. Severity notice messages from all facilities will be directed to /dev/console

  • Question 153:

    Which of the following find commands will print out a list of suid root files in /usr?

    A. find /usr -uid 0 -perm +4000

    B. find -user root +mode +s /usr

    C. find -type suid -username root -d /usr

    D. find /usr -ls \*s\* -u root

    E. find /usr -suid -perm +4000

  • Question 154:

    Which of the following commands will provide locale-specific information about a system and its environment?

    A. loconfig

    B. getlocale

    C. locale

    D. tzconfig

    E. tzselect

  • Question 155:

    Which of the following should the permission settings be for /etc/passwd and /etc/shadow?

    A. /etc/passwD. -rw-r--r-- /etc/shadow: -r-------

    B. /etc/passwD. -r-------- /etc/shadow: -rw-r--r-

    C. /etc/passwD. -rw-r--r-- /etc/shadow: -rw-r--r-

    D. /etc/passwD. -r-------- /etc/shadow: -r--------}

  • Question 156:

    Which of the following configuration files should be modified to set default shell variables for all users?

    A. /etc/bashrc

    B. /etc/profile

    C. ~default/.bash_profile

    D. /etc/skel/.bashrc

    E. /etc/skel/.bash_profile

  • Question 157:

    Which of the following looks like a correct entry in the /etc/hosts file?

    A. localhost 127.0.0.1 localhost.localdomain

    B. localhost.localdomainlocalhost 127.0.0.1

    C. localhostlocalhost.localdomain 127.0.0.1

    D. 127.0.0.1 localhost.localdomainlocalhost

    E. localhost.localdomain 127.0.0.1 localhost

  • Question 158:

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

    A. order hosts, bind

    B. 192.168.168.4 dns-server

    C. hosts: files, dns

    D. domain mycompany.com

  • Question 159:

    In the following command and its output, echo $$ 12942 which of the following is 12942?

    A. The process ID of the echo command.

    B. The process ID of the current shell.

    C. The process ID of the last command executed.

    D. The process ID of the last backgrounded command.

  • Question 160:

    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}

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.