nerdexam
CompTIACompTIA

PT0-002 · Question #98

PT0-002 Question #98: Real Exam Question with Answer & Explanation

The correct answer is E: #!. https://linuxconfig.org/bash-scripting-tutorial-for-beginners

Tools and Code Analysis

Question

When developing a shell script intended for interpretation in Bash, the interpreter /bin/bash should be explicitly specified. Which of the following character combinations should be used on the first line of the script to accomplish this goal?

Options

  • A<#
  • B<$
  • C##
  • D#$
  • E#!

Explanation

https://linuxconfig.org/bash-scripting-tutorial-for-beginners

Topics

#shell scripting#bash#shebang#scripting fundamentals

Community Discussion

No community discussion yet for this question.

Full PT0-002 PracticeBrowse All PT0-002 Questions