How do you run multiple commands at once?

Trang Esther

New member
How do you run multiple commands at once?
Answer
There are 3 ways to run multiple shell commands in one line:
  1. 1) Use ; No matter the first command cmd1 run successfully or not, always run the second command cmd2: …
  2. 2) Use && Only when the first command cmd1 run successfully, run the second command cmd2: …
  3. 3) Use ||
 

Tìm kiếm

Back
Top