nerdexam
LPI

101-500 · Question #277

101-500 Question #277: Real Exam Question with Answer & Explanation

The correct answer is C. cmd1 ; cmd2. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Shells and Shell Scripting

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

Explanation

You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Topics

#shell operators#command sequencing#exit status handling#sequential execution

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice