LPI Exam Questions

Which character(s) do you put between the commands on the command line to accomplish this?

You wish to execute two commands, one after the other. However, you only want the second command to execute if the first is successful.
Which character(s) do you put between the commands on the command line to accomplish this?

Answer: &&

Explanation:
&& logical and (execute cmd2 ONLY if cmd1 was successful)
|| logical or (execute cmd2 only if cmd1 was NOT successful)