To run two commands at the sametime use the semi-colon ";"
Code Block | ||
---|---|---|
| ||
command1 ; command2 |
To run a command only after the first command has failed use the double pipe "||"
Code Block | ||
---|---|---|
| ||
command1 || command2 |
To run a command only if the first is successful use the double ampersand "&&"
Code Block | ||
---|---|---|
| ||
command1 && command2 |