Command Lists
cmd1 ; cmd2 |
Run cmd1 then cmd2 |
cmd1 && cmd2 |
Run cmd2 if cmd1 is successful |
cmd1 || cmd2 |
Run cmd2 if cmd1 is not successful |
Comments
cmd1 ; cmd2 |
Run cmd1 then cmd2 |
cmd1 && cmd2 |
Run cmd2 if cmd1 is successful |
cmd1 || cmd2 |
Run cmd2 if cmd1 is not successful |