B.A.S.H. Shell : Connecting Syntax options

A catalogue of bash control and redirection operators for chaining commands and wiring up I/O.

Rule of thumb: pipe vs redirect

| pipes a stream to a process. < > >> redirect a stream to/from a file. Before typing either, be crystal clear whether the right-hand side is a process or a file — picking the wrong operator is the #1 source of confusion.

Chaining: ; && ||

Piping: io-stream | process

Redirection: < > >> 2> &>