在 Linux shell 中,可以使用下面的格式,顺序的批量执行一组命令。

1. 格式一 &&

command 1 && command 2 && command 3

2. 格式二 ;

command 1 ; command 2; command 3

 

 

相关文章: