Syntax
Description
command1 && command2
Executes command2 only if command1 succeeds.
command2
command1
command1 || command2
Executes command2 only if command1 fails.
command1 ; command2
Executes command1 and then command2, regardless of the outcome of command1.
command1 | command2
Executes command1 and send the output of command1 to command2.
`command` or $(command)
`command`
$(command)
Executes command and replaces it with its output.
command
Last updated 1 year ago