Prayer

在一般中寻求卓越
posts - 1256, comments - 190, trackbacks - 0, articles - 0
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

shell命令运行符号& ; &&区别

Posted on 2009-04-03 14:24 Prayer 阅读(2589) 评论(0)  编辑 收藏 引用 所属分类: Shell

 


command1&command2&command3     三个命令同时执行
command1;command2;command3     不管前面命令执行成功没有,后面的命令继续执行
command1&&command2             只有前面命令执行成功,后面命令才继续执行

文章出处:http://www.diybl.com/course/6_system/linux/Linuxjs/2008109/149589.html


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理