Linux 101 : Bash scripting - how to combine commands -
To execute a command "command1" in the background, so we still have access to the command prompt we use the below command:
The command "command2" is executed only if the "command1" succeeds, if it fails, then the command "command2" is not executed:
If "command1" fails, then "command2" is executed:
Comments