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.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications