ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 98 - PT0-002 discussion

Report
Export

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?

A.
<#
Answers
A.
<#
B.
<$
Answers
B.
<$
C.
##
Answers
C.
##
D.
#$
Answers
D.
#$
E.
#!
Answers
E.
#!
Suggested answer: E

Explanation:

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

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

asked 02/10/2024
Glen Makhuvele
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first