What command would execute cmd1 followed by cmd2, regardless of the exit status of cmd1?
A.
cmd1 cmd2
B.
cmd1 | cmd2
C.
cmd1 ; cmd2
D.
cmd1 && cmd2
E.
cmd1 || cmd2
What command would execute cmd1 followed by cmd2, regardless of the exit status of cmd1?
What command would execute cmd1 followed by cmd2, regardless of the exit status of cmd1?
A.
cmd1 cmd2
B.
cmd1 | cmd2
C.
cmd1 ; cmd2
D.
cmd1 && cmd2
E.
cmd1 || cmd2
I think C and E is correct.
+”A ; B” Run A and then B, regardless of success of A
+”A && B” Run B if A succeeded
+”A || B” Run B if A failed
+”A &” Run A in background.