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

    Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)

    A. resolv
    B. dns
    C. remote
    D. files
    E. hosts

  • Question 102:

    What is the difference between the commands test -e path and test -f path?

    A. They are equivalent options with the same behaviour.
    B. The -f option tests for a regular file. The -e option tests for an empty file.
    C. Both options check the existence of the path. The -f option also confirms that it is a regular file.
    D. The -f option tests for a regular file. The -e option tests for an executable file.

  • Question 103:

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

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

    Which command is used to add OpenSSH private keys to a running ssh-agent instance? (Specify the file name only without any path.)

    A. ssh-add

  • Question 106:

    Which of the following commands prints the exit value of the most recently executed program in Bash?

    A. echo $?
    B. echo $#
    C. echo $exit
    D. echo $status
    E. echo $and

  • Question 107:

    Why should an NTP client maintain connections to several NTP servers?

    A. To receive NTP information every second as each server transmits NTP pings every five seconds only.
    B. To improve the precision of the time by comparing responses from several servers.
    C. To not overload the remote server in case the local NTP time cache is not enabled.
    D. To not lose contact with all NTP servers in case the client changes networks.

  • Question 108:

    Which of the following find commands will print out a list of files owned by root and with the SUID bit set 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 109:

    Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)

    A. New name servers may be added to the resolver configuration.
    B. Network interfaces may become active or inactive.
    C. The routing table may change.
    D. IP addresses may change.
    E. The system's host name may change.

  • Question 110:

    Which file used by XDM specifies the default wallpaper?

    A. /etc/X11/xdm/Xsetup
    B. /etc/X11/xdm.conf
    C. /etc/X11/xdm/Defaults
    D. /etc/X11/defaults.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.