Regarding a typical shell script, the following statements are true:
It has the executable permission bit set 1.
It starts with the two character sequence #! (called a shebang) that specifies the interpreter to be used to execute the script 12.
Therefore, options A and B are correct.
Shell scripts are not compiled into binary files. Instead, they are interpreted by the shell program 1.
Also, there is no standard location for shell scripts. They can be located anywhere in the file system, depending on the user’s preference and requirements
#! can be omitted if the script consists only of a set of generic system commands, using no internal shell directives. But is that *typical*? is still say B.
I think the premise on these choose two questions is that there might be three right answers. This is the second question where there are three possible correct answers out of the five.
E is not correct because scripts are interpreted, not compiled, as the examples by MWU show.
upvoted 4 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.
Djerod
Highly Voted 3 years, 5 months agoMWU
Highly Voted 3 years, 5 months agoAndrewGrasso
Most Recent 2 months, 3 weeks agoNabushar
6 months, 2 weeks agoRouter
1 year, 2 months agoTheExaminerBot
1 year, 3 months agoNotnotataco
1 year, 7 months agoshosha
1 year, 12 months agoDanYendler2014
2 years agoJRossJ
2 years, 4 months agoDS1982
2 years, 6 months agoWes_60
2 years, 9 months agomikymouse
2 years, 10 months agoAllan85
2 years, 11 months agoh0st
3 years agoRedCloud
3 years, 1 month ago