会计考友 发表于 2012-8-4 12:19:50

红帽认证辅导:RH033题库Topic#11Shell脚本

Topic #11 Shell 脚本 :   31) 以下shell 脚本中,date命令将执行多少次?
  for i in a b; do date; done
  0
  1
  2
  32) 以下shell 脚本中什么条件才会回显 hello?
  if [ -d newitem ]; then echo hello; fi
  如果 newitem 是一个目录。
  总是回显。
  从不,因为 netitem是非空字串。
  33) 当在shell脚本中使用while/do循环时,continue语句的作用是什么?
  暂停一秒,然后继续执行。
  打断do循环, 跳至while语句重新判断条件语句。
  跳至done语句后继续执行。
页: [1]
查看完整版本: 红帽认证辅导:RH033题库Topic#11Shell脚本