Page 1 of 1

How is it possible to determine if an executable file is a shell script which is read by Bash?

Posted: Sat Aug 20, 2022 7:47 am
by answerhappygod
How is it possible to determine if an executable file is a shell script which is read by Bash?

A. The r bit is set.
B. The file must end with .sh.
C. The first line starts with #!/bin/bash.
D. /bin/bash has to be run in debug mode.
E. Scripts are never executable files.