LPIC-1 Exam 102 v5 (Linux Administrator) — Question 28
What is true regarding the statement beginning with #! that is found in the first line of script? (Choose two.)
Answer options
- A. It prevents the scripts from being executed until the ! is removed.
- B. it triggers the installation of the script's interpreter.
- C. It specifies the path and the arguments of the interpreter used to run the script.
- D. It defines the character encoding of the script.
- E. It is a comment that is ignored by the script interpreter.
Correct answer: B, C
Explanation
The correct answers are B and C because the #! (shebang) line specifies the interpreter for the script and can include arguments for it. Options A, D, and E are incorrect as the shebang does not prevent execution, does not define character encoding, and is not treated as a comment by the interpreter.