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
    :Jul 09, 2026

CompTIA LX0-104 Online Questions & Answers

  • Question 1:

    What happens if the password of a user in the /etc/shadow file is prepended with the ! character?

    A. When logging in, the user automatically gets root privileges in addition to his regular privileges.
    B. The password is inverted which allows the user to log in with any password other than the current password.
    C. The user is disabled and all login methods, including but not limited to password based logins, are disabled.
    D. Upon the next log in, the user is forced to change his password.
    E. The password becomes invalid which disables password based logins although other login methods remain usable.

  • Question 2:

    Which of the following are operators used for comparison by the test command? (Choose two correct answers.)

    A. equals
    B. =
    C. –is
    D. –eq
    E. null

  • Question 3:

    What is true about the ntpdate command?

    A. It is the primary management command for the NTP time server.
    B. It updates the local system's date (i.e. day, month and year) but not the time (i.e. hours, minutes, seconds).
    C. It queries one or more NTP time servers and adjusts the system time accordingly.
    D. It sends the local system time to one or many remote NTP time servers for redistribution.
    E. It can be used by any user to set the user clock independently of the system clock.

  • Question 4:

    What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

    A. route del default
    B. ifconfig unset default
    C. netstat -r default
    D. ip route del default
    E. sysctl ipv4.default_gw=0

  • Question 5:

    Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)

    A. ssh --port 2222 example.com
    B. ssh -p 2222 example.com
    C. ssh -o Port=2222 example.com
    D. ssh -o GatewayPort=2222 example.com
    E. ssh example.com:2222

  • Question 6:

    What output will the following command produce?

    seq 1 5 20

    A. 1
    B. 1
    C. 1
    D. 2
    E. 5

  • Question 7:

    Which configuration file would be edited to change default options for the OpenSSH server?

    A. /etc/ssh/sshd_config
    B. /etc/ssh/ssh
    C. /etc/ssh/server
    D. /etc/ssh/ssh_config
    E. /etc/ssh/ssh_server

  • Question 8:

    How many IP-addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/28? (Specify the number only without any additional information.)

    A. 14

  • Question 9:

    Each entry in a crontab must end with what character?

    A. Tab
    B. Space
    C. Backslash
    D. Newline

  • Question 10:

    Which command will set the local machine's timezone to UTC?

    A. cat UTC > /etc/timezone
    B. ln -s /usr/share/zoneinfo/UTC /etc/localtime
    C. date --timezone=UTC
    D. mv /usr/timezone/UTC /etc

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.