nerdexam
CompTIA

SK0-005 · Question #521

A server administrator created a new script and included the path to the script binary as the first line of the script. Which of the following scripting languages did the administrator most likely…

The correct answer is C. Bash. In Bash (a Unix/Linux shell scripting language), it is common to include the shebang (#!) followed by the path to the interpreter (e.g., #!/bin/bash) on the first line of the script. This tells the operating system which interpreter to use to execute the script.

Server administration

Question

A server administrator created a new script and included the path to the script binary as the first line of the script. Which of the following scripting languages did the administrator most likely use?

Options

  • ABatch
  • BJava
  • CBash
  • DPowerShell

How the community answered

(52 responses)
  • A
    4% (2)
  • B
    2% (1)
  • C
    88% (46)
  • D
    6% (3)

Explanation

In Bash (a Unix/Linux shell scripting language), it is common to include the shebang (#!) followed by the path to the interpreter (e.g., #!/bin/bash) on the first line of the script. This tells the operating system which interpreter to use to execute the script.

Topics

#Scripting#Bash#Shebang#Linux administration

Community Discussion

No community discussion yet for this question.

Full SK0-005 Practice