Linux shell 命令运行符 &,;,&& 区别

Posted Hank.Yoon

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux shell 命令运行符 &,;,&& 区别相关的知识,希望对你有一定的参考价值。

&

command1 & command2 & command3   三个命令同时执行

command1 ; command2 ; command3     不管前面是否执行成功,后面继续执行

&&

command1 && command2 && command3  只有前面命令执行成功,后面命令才能继续执行

以上是关于Linux shell 命令运行符 &,;,&& 区别的主要内容,如果未能解决你的问题,请参考以下文章