Control Operator |
Usage |
;semicolon |
More than one command can be used in a singleline. |
& ampersand |
Command ends with & and doesn't wait for command to finish. |
$?dollar question mark |
Used to store exit code of the previous command. |
&& double ampersand |
Used as logical AND. |
|| double vertical bar |
Used as logical OR. |
Combining && and || |
Used to write if then else structure in command line. |
# pound sign |
Anything written after # will be ignored. |
\ escaping special characters | Backslash enables control character but without shell interpretation.
|