QuestionQ39

Shells y scripts

Which statements are true about the statement that starts with #! on the first line of a script?

Choose two
  • 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.
Explanation

A shebang specifies the path to the interpreter and can include arguments used to run a directly executed script. The interpreter normally treats that first #! line as a comment rather than executable script content.

Community Discussion

No comments yet. Be the first to start the discussion!