博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

Unix爱好者家园

卓越源代码  
   sdccf.cublog.cn
关于作者  
姓名:sdccf
职业:chinapost
年龄:36
位置:sd
个性介绍:

我的分类  




RHCE认证考试辅导: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语句后继续执行。

 发表于: 2008-04-27,修改于: 2008-04-27 15:44 已浏览166次,有评论0条 推荐 投诉

  网友评论

  发表评论



Copyright © 2001-2006 ChinaUnix.net All Rights Reserved

感谢所有关心和支持过ChinaUnix的朋友们
页面生成时间:0.5811

京ICP证041476号