Learn › Linux Foundations

Chaining

Joining commands on one line and letting the result of one decide the next: the semicolon, exit status and $?, && on success, on failure, both together, ( ) subshell grouping and { } grouping in the current shell, and the shell's own numbers $ and $!.

Labs in this module