How to bundle and execute commands using && on Linux

Asked 2 years ago, Updated 2 years ago, 42 views

If you enter command 1 && command 2, command 2 is executed after command 1 is completed, right?

Then

[Command 1, Command 2, Command 3] && [Command 4, Command 5, Command 6] In this way, if you want commands 1 to 3 to be entered (executed) at the same time, and after 1, 2, and 3 are all completed, how do you want to execute the decoration? Do I have to enter a command?

python centos ubuntu

2022-09-20 19:26

1 Answers

There is a command called parallel. Ubuntu and Fedora, which are currently used a lot, may not have a basic installation.

You can install it in the form of apt install parallel.

For instructions, see the https://www.gnu.org/software/parallel/ link.

Only if shell script is how to how to do with simple

jenkins how to use.


2022-09-20 19:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.