Multi-command execution in ubuntu

Source: Internet
Author: User
Command & amp; command is run in the background of the sub-shell. Background tasks allow multiple programs to run in one shell. ------------------------------------------------------------------ Command1 | command2command1...
Command & command is run in the background of the sub-shell. Background tasks allow multiple programs to run in one shell. ------------------------------------------------------------------ Command1 | the standard output of command2 command1 is directly input to the standard input of command2. Both commands may run in parallel. This is called pipeline. Www.2cto.com ------------------------------------------------------------------ command1; command2 command1command2 is executed in an orderly manner. ------------------------------------------------------------------ Command1 & command2 command1 if the execution is successful, execute command2 again. Only when command1 and command2 run successfully will the above command sequence be returned successfully. ------------------------------------------------------------------ Command1 | after command2 command1 is executed, if it fails, command2 will also be executed. If one of command1 or command2 is successfully executed, the above sequence returns the true value. Author lzyfn123
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.