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

Key Takeaway: The #!/bin/bash indicates that the script should be run in the bash shell by overriding any shell the user has chosen. This is very helpful since it alerts the user to type appropriate scripts for the bash shell.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz