Script basics · Question 12 of 12
Which statements about the shebang line are true?
3 answers are correct. Hard Created with AI
Show answer
Answer
- B With bash script.sh it plays no role in choosing the interpreter
- C It only works if it is on the very first line
- D For Bash itself it is just a comment
Explanation
The kernel only reads the first two bytes of the file. Because the line starts with #, Bash skips it like any comment.