Objective
Many commands are executed simultaneously during Linux operations or during day-to-day Linux operation, so that it needs to be handled through our multiple command methods. Multi-order execution includes '; ' And the ' && ' command so that the shell can execute multiple commands at once, with '; ' and ' && ' separated by each command. So what's the difference between the two, let's take a look at the next.
1, '; '
Use the '; '---------first to execute the next command, regardless of whether the first command went wrong.
2, ' && '
The ' && '--------is to execute the next command, similar to a short circuit, when the first command completes correctly.
Summarize
Well, the above is the entire content of this article, I hope the content of this article for everyone's study or work can bring certain help, if you have questions you can message exchange.