shell 中的 && 和 ||

shell 中的 && 和 ||

简言之,shell 中 

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

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

原文地址:https://www.cnblogs.com/drjava/p/10512955.html