CompTIA Linux+ Powered by LPI 2

Here you have the best CompTIA LX0-104 practice exam questions

  • You have 149 total questions to study from
  • Each page has 5 questions, making a total of 30 pages
  • You can navigate through the pages using the buttons at the bottom
  • This questions were last updated on November 3, 2025
  • This site is not affiliated with or endorsed by CompTIA.
Question 1 of 149
What is true regarding the statement beginning with #! that is found in the first line of a script?
    Correct Answer: B

Question 2 of 149
SIMULATION -
What word is missing from the following SQL statement? update tablename ____ fieldname='value' where id=909;
(Please specify the missing word using lower\_case letters only.)
    Correct Answer:

Question 3 of 149
Which of the following SQL statements will select the fields name and address from the contacts table?
    Correct Answer: C

Question 4 of 149
Which of the following configuration files should be modified to globally set shell variables for all users?
    Correct Answer: B

    The correct configuration file to modify in order to globally set shell variables for all users is /etc/profile. This file is executed for login shells and applies settings that should be available to all users on the system. Therefore, modifying /etc/profile ensures that the shell variables are globally set for everyone.

Question 5 of 149
Which of the following commands are used to manage the environment and shell variables within a shell process? (Choose TWO correct answers.)
    Correct Answer: A, D

    The 'export' command is used to set environment variables that are passed to child processes. The 'set' command is used to set and unset shell options and positional parameters. These commands are essential for managing environment and shell variables within a shell process.