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

    By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)

    A. /etc/skel

  • Question 112:

    Which command makes the shell variable named VARIABLE visible to subshells?

    A. export $VARIABLE
    B. export VARIABLE
    C. set $VARIABLE
    D. set VARIABLE
    E. env VARIABLE

  • Question 113:

    Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

    A. ~/.bashconf
    B. ~/.bashrc
    C. ~/.bashdefaults
    D. ~/.bash_etc
    E. ~/.bash_profile

  • Question 114:

    Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)

    A. The user issuing the command must be in the group script.
    B. The script file must be found in the $PATH.
    C. The script file must have the executable permission bit set.
    D. The script must begin with a shebang-line (#!) that points to the correct interpreter.
    E. The file system on which the script resides must be mounted with the option scripts.

  • Question 115:

    Which of the following commands shows the current color depth of the X Server?

    A. xcd
    B. xcdepth
    C. xwininfo
    D. xcolordepth
    E. cat /etc/X11

  • Question 116:

    Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)

    A. substitute
    B. nameserver
    C. search
    D. lookup
    E. method

  • Question 117:

    What is true regarding the statement beginning with #! That is found in the first line of a script?

    A. It prevents the script from being executed until the ! is removed.
    B. It specifies the path and the arguments of the interpreter used to run the script.
    C. It is a comment that is ignored by the script.
    D. It specifies the character encoding of the script.

  • Question 118:

    What is true about the file /etc/localtime?

    A. It is a plain text file containing a string such as Europe/Berlin.
    B. It is created and maintained by the NTP service based on the geolocation of the system's IP address.
    C. It is a symlink to /sys/device/clock/ltime and always contains the current local time.
    D. It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/Europe/Berlin.

  • Question 119:

    Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers)

    A. Year
    B. Minute
    C. Username
    D. Command

  • Question 120:

    The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?

    A. It is placed in curly brackets as in Section SectionName { ... }.
    B. It is placed between a line containing Section "SectionName" and a line containing EndSection.
    C. It is placed between the tags and
    D. It is placed after the row [SectionName].
    E. It is placed after an initial unindented Section "SectionName" and must be indented by exactly one tab character.

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.