[Tip] Running methods at once in bash

Run always all the listed methods:

A; B; C

It will run A then B and then C command – regardless of result of any previous method
C-like code example:
A();
B();
C();

Run all the listed methods until the first fail (exit code different than 0):

A && B && C

Run B only if A ended with success then run C only if B ended with success
C-like code example:
if (A()) {
    if (B()) {
        C();
    }
}

Run all the listed methods until the first success:

A || B || C

Run B only if A failed – then run C only if B failed
C-like code example:
if (!A()) {
    if (!B()) {
        C();
    }
}

Read more about working with commands in background.