command-list
Bash AND command list
Runs second command only after first succeeds. Returns status of last executed command.
Formal Syntax & Structure
bash syntaxbash
command1 && command2Return Value
exit status
Runs second command only after first succeeds. Returns status of last executed command.
Working Example
Example Snippetbash
true && printf '%s\n' run