Linux Command Line Tools
Last updated
Was this helpful?
Last updated
Was this helpful?
Assume there is command1 && command2
.
In this case command2
will be executed if and only if command1
returned zero exit status.
Similarly, command1 || command2
can be used to run command2
only if command1
returned a nonzero exit status.
;
is just a command separator. Thus command2
will be executed whatever command1
returned.