Loading...
cd build; rm -rf ./*cd build && rm -rf ./*With &&, the delete runs only if cd succeeded; with ; it runs in the current folder even after a failure.
; so rm still runs after a failed cd.&&, not ;.a && b || c is not used as if/else, since c also runs when b fails.; runs the next command no matter what. && runs it only if the previous one exited with status 0.
&& chains commands on success. A single & runs the command before it in the background.