Thursday, 13 August 2015

Bash: Multiple Commands in One Line

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

"
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.
"


No comments:

Post a Comment