Which of the following must be included at the beginning of every shell script?
  1. #Comment
  2. exit 0
  3. #!/bin/bash
  4. #begin script
Explanation
Answer - C - #!/bin/bash must be included at the beginning of every shell script.

Key Takeaway: The #!/bin/bash element must be included at the beginning of every bash shell script. In a bash script, anything following a pound sign, besides the shell name on the first line, is treated as a comment. The shell ignores it; it is merely included to benefit programmers.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz