单项选择题
以下为shell脚本中的变量username赋值“root”的语句是()。
A.username="root"
B.username!="root"
C.username as"root"
D.username is"root"
点击查看答案&解析
相关考题
-
单项选择题
为变量dirname赋值为“hello world”的语句为()。
A.dirname=hello world
B.dirname as"hello world"
C.dirname is "hello world"
D.dirname="hello world" -
单项选择题
为变量count赋值1的语句是()。
A.count#1
B.count=1
C.count=`1`
D.count is 1 -
单项选择题
在shell脚本中,哪个变量保存了上一条命令执行后的返回值(或错误代码)()。
A.$$
B.$?
C.$#
D.$!
