Exam PT0-002 Topic 7 Question 290 Discussion

Actual exam question for CompTIA's PT0-002 exam
Question #: 290
Topic #: 7
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?

Suggested Answer: E Vote an answer

Reference:
#!/bin/bash ---# and ! makes this line special because # is used as comment line in bash. ! is called

by Rachel at Jul 27, 2024, 07:14 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10