dairui130

导航

shell 中的 && 和 ||

shell 中的 && 和 ||

简言之,shell 中 

&& --左边的命令执行成功才会执行右边的命令。

|| -- 左边的命令执行失败才会执行右边的命令。

posted on 2019-03-11 20:25  dairui130  阅读(197)  评论(0编辑  收藏  举报