AND list

Two commands joined by &&, where the second runs only if the first succeeds.

In more detail

mkdir demo && cd demo stops before cd if the directory could not be made. The whole list returns the status of the last command that ran.

Related terms

Taught in

References