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.
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)- A4% (2)
- B2% (1)
- C88% (46)
- D6% (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
Community Discussion
No community discussion yet for this question.