[article/tutorial] How to Run Multiple Linux Commands at Once in Linux Terminal [Essential Beginners Tip]
1 message · started by Devi Garcia on Sep 15, 2020
[article/tutorial] How to Run Multiple Linux Commands at Once in Linux Terminal [Essential Beginners Tip]
From Devi Garcia · Sep 15, 2020
Running two or more commands in one line can save you a good deal of time and help you become more efficient and productive in Linux.
There are three ways you can run multiple commands in one line in Linux:
| ; | Command 1 ; Command 2 | Run command 1 first and then command 2 |
| && | Command 1 && Command 2 | Run command 2 only if command 1 ends sucessfully |
| || | Command 1 || Command 2 | Run command 2 only if command 1 fails |
Let me show you in detail how you can chain commands in Linux.
read more:
