nerdexam
CompTIA

LX0-101 · Question #439

What command would execute cmd1 followed by cmd2, regardless of the exit status of cmd1?

The correct answer is C. cmd1 ; cmd2. See the full explanation below for the reasoning.

Question

What command would execute cmd1 followed by cmd2, regardless of the exit status of cmd1?

Options

  • Acmd1 cmd2
  • Bcmd1 | cmd2
  • Ccmd1 ; cmd2
  • Dcmd1 &&cmd2
  • Ecmd1 || cmd2

How the community answered

(48 responses)
  • A
    4% (2)
  • B
    10% (5)
  • C
    83% (40)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice