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
    :Mar 24, 2025

CompTIA CompTIA Certifications LX0-104 Questions & Answers

  • Question 21:

    The presence of what file will temporarily prevent all users except root from logging into the system? (Specify the full name of the file, including path.)

    A. /etc/nologin

  • Question 22:

    Which configuration file would be edited to change the default options for outbound SSH sessions?

    A. /etc/ssh/sshd_config

    B. /etc/ssh/ssh

    C. /etc/ssh/client

    D. /etc/ssh/ssh_config

    E. /etc/ssh/ssh_client

  • Question 23:

    Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?

    A. tcpd

    B. inetd

    C. fingerd

    D. mountd

    E. xinetd

  • Question 24:

    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

  • Question 25:

    In an xinetd configuration file, which attribute specifies the network address that will be used to provide the service?

    A. bind -or- interface

  • Question 26:

    What argument to the -type option of find will match files that are symbolic links? (Specify only the argument and no other options or words.)

    A. l

  • Question 27:

    With X11 forwarding in ssh, what environment variable is automatically set in the remote host shell that is not set when X11 forwarding is not enabled? (Specify only the environment variable without any additional commands or values.)

    A. DISPLAY -or- $DISPLAY

  • Question 28:

    Which of the following statements is valid in the file /etc/resolv.conf?

    A. order hosts, bind

    B. 192.168.168.4 dns-server

    C. hosts: files, dns

    D. domain example.com

  • Question 29:

    When issuing the command ifconfig eth0 192.168.1.20/24 up, which of the following happens? (Choose two correct answers.)

    A. The address 192.168.1.20 is associated with the interface eth0.

    B. A network route to 192.168.1.0 with the netmask 255.255.255.0 pointing directly to eth0 is created.

    C. 192.168.1.1 is probed for router functionality and, in case of success, it is added to the list of default routers.

    D. The addresses from 192.168.1.20 to 192.168.1.24 are activated on the interface eth0.

    E. If eth0 was configured with a previous IP address, it is retained an addition to adding the new address.

  • Question 30:

    What is the name of the file that defines the sources (like DNS or local configuration files) and the order in which they are consulted when resolving hostnames? (Specify the full name of the file, including path.)

    A. /etc/nsswitch.conf

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.