Home » CompTIA » PT1-002 » 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?
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. <#
B. <$
C. ##
D. #$
E. #!
Correct Answer: D
Explanation/Reference:
Reference: https://linuxconfig.org/bash-scripting-tutorial-for-beginners
The correct answer is E
E