skip to Main Content

Which one is better: using ; or && to execute multiple commands in one line?

Cheatsheet:

A; B    Run A and then B, regardless of success of A
A && B  Run B if A succeeded
A || B  Run B if A failed
A &     Run A in background.
This Post Has 0 Comments

Leave a Reply

Back To Top