LX0-104 Exam Details

  • Exam Code
    :LX0-104
  • Exam Name
    :CompTIA Linux+ [Powered by LPI] 2
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :178 Q&As
  • Last Updated
    :May 28, 2026

CompTIA LX0-104 Online Questions & Answers

  • Question 71:

    Which of the following steps prevents a user from obtaining an interactive login session?

    A. Run the command chsh -s /bin/false with the user name.
    B. Set the UID for the user to 0.
    C. Remove the user from the group staff.
    D. Add the user to /etc/noaccess.
    E. Create a .nologin file in the user's home directory.

  • Question 72:

    Which of the following commands will help identify a broken router between the local and the remote machine?

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

  • Question 73:

    Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)

    A. Synchronize the hardware and system clocks.
    B. Output date and time in different formats.
    C. Set the system clock.
    D. Set the hardware clock.
    E. Update the time via NTP.

  • Question 74:

    Which command is used to manually assign an IP address to a network interface? (Specify only the command without any path or parameters.)

    A. ifconfig

  • Question 75:

    What is the assigned port number for the HTTP service? (Specify the port number using digits.)

    A. 80

  • Question 76:

    What word is missing from the following SQL statement?

    __________ count(*) from tablename;

    (Please specify the missing word using lower-case letters only.)

    A. select

  • Question 77:

    What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?

    A. *.* /dev/tty12
    B. /var/log/messages | /dev/tty12
    C. | /dev/tty12
    D. syslog tty12
    E. mail.* /dev/tty12

  • Question 78:

    What is true about UIDs and GIDs?

    A. UIDs and GIDs share a common number space. Each time a new user or group is created, the next free ID is assigned.
    B. The first four digits of each UID are the GID of the primary group of that user.
    C. The GID of a group is always the sum of the UIDs of its members.
    D. The number space is split up. UIDs usually reside in the range from 0 to 32767 while GIDs reside in the range from 32768 to 65535.
    E. There are distinct number spaces for UIDs and GIDs, i.e. the same number may be used as both UID and a GID.

  • Question 79:

    To prevent a specific user from scheduling tasks with at, what should the administrator do?

    A. Add the specific user to /etc/at.allow file.
    B. Add the specific user to [deny] section in the /etc/atd.conf file.
    C. Add the specific user to /etc/at.deny file.
    D. Add the specific user to nojobs group.
    E. Run the following: atd --deny [user].

  • Question 80:

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

    A. localhost 127.0.0.1 localhost.localdomain localhost 127.0.0.1
    B. localhost.localdomain
    C. localhost localhost.localdomain 127.0.0.1
    D. 127.0.0.1 localhost.localdomain localhost 127.0.0.1 localhost
    E. localhost.localdomain

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