Execute many commands in one line in Linux

Run A then B, even if A fails

A; B

Run B only if A works

A && B

Run B only if A fails

A || B