题目内容

以下哪条命令将等待用户输入并将用户输入保存到变量中?

A. exec
B. get
C. read
D. prompt

查看答案
更多问题

以下能正确定义一个shell函数的是?

A. Parentheses to declare the function (optional) and curly braces to contain the commands
B. Curly braces to declare the function and parentheses to contain the commands
C. Square brackets to declare the function and curly braces to contain the commands
D. Run quotes to denote the function

以下哪个关键词用于在if语句中增加一个其他条件?

A. if
B. else if
C. elif
D. elsif

以下哪个测试能检查一个文件是否存在?

A. -a
B. -e
C. -m
D. -i

以下能创建一个数组的是?

ARRAY=(val1 val2)
B. ARRAY = "val1 val2"
C. ARRAY_PUSH($ARRAY,"val1","val2");
D. ARRAY{0} = "val1"

答案查题题库