题目
IWBS001 Quiz Seven | LA010- Requires Respondus LockDown Browser
单项选择题
The purpose of code "#! /bin/sh" at the beginning of a Unix script is
选项
A.To tell the system that the script will be running on BASH shell.
B.To tell the system that the script will be running on Unix Bin shell.
C.it is a comments line, as it starts with an "#".
D.To tell the system that it is a Unix shell script.
查看解析
标准答案
Please login to view
思路分析
The question asks about the purpose of the line "#! /bin/sh" at the start of a Unix script.
Option 1: "To tell the system that the script will be running on BASH shell." This is not accurate because /bin/sh designates the system’s default shell, which may be dash, bash, or another shell, but it does not guarantee BASH specifically. The directive uses the interpreter path, not a specific shell name like ......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Question at position 9 Given the following shell variable assignments, a=2; b=5; c=10 Which of the following conditions is true? [ $a –eq 3 –o $b –ge 5 ][ $b –gt 5 ][ $c = (3 + 7) ][ a –eq 2 ]
Shell command (1 mark)How many lines will be output by the following shell command? cat data.csv | awk -F’,’ ’rand()<9/10 {print $9}’[Fill in the blank]
To execute a Unix shell script TEST.SH, you may use
A UNIX shell script program file is
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!