nerdexam
CompTIA

PT0-002 · Question #98

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

Sign in or unlock PT0-002 to reveal the answer and full explanation for question #98. The question stem and answer options stay visible for context.

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?

Exhibit

PT0-002 question #98 exhibit

Options

  • A<#
  • B<$
  • C

  • D#$
  • E#!

Unlock PT0-002 to see the answer

You've previewed enough free PT0-002 questions. Unlock PT0-002 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#shell scripting#bash#shebang#scripting fundamentals
Full PT0-002 Practice