|
您现在的位置是:
IT外包 ->技术支持 ->基础知识 ->
|
|
|
|
RHCE认证考试辅导:RH033题库Topic#11Shell脚本
|
作者:
不详
| 发布时间:
2008-06-12 13:39
| 信息类别:
基础知识
| 访问人次:
次 |
|
|
|
|
|
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语句后继续执行。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/31/showart_600661.html
|