Linux under multiple command execution:
1. Executes multiple commands and does not ensure that each execution succeeds.
Multiple commands are separated by a semicolon (;), for example: Command1 | | command2 | | Command3 Three commands are executed, not ensuring that each command executes successfully.
2. Execute multiple commands and stop subsequent command execution after encountering a failed command.
Logical AND (&&) operations between multiple commands, such as: Command1 && command2 && command3 Three command one failed to stop subsequent command execution.
3. Execute multiple commands and stop subsequent command execution after encountering successful command execution.
Logic between multiple commands or (| |) Operations, such as: Command1 | | Command2 | | Command3 Three commands a success stops subsequent lives.
The execution of the order.
This article is from the "Red Horse Red" blog, please be sure to keep this source http://aiilive.blog.51cto.com/1925756/1684139
Multi-command execution under Linux