nerdexam
CompTIA

LX0-101 · Question #261

The command echo $! will produce what output?

The correct answer is A. the process id of last background command. See the full explanation below for the reasoning.

Question

The command echo $! will produce what output?

Options

  • Athe process id of last background command
  • Bthe exit status of the last command
  • Cthe exit status of the last background command
  • Dthe process id of the current shell
  • Ethe name of the command being executed

How the community answered

(29 responses)
  • A
    79% (23)
  • C
    3% (1)
  • D
    10% (3)
  • E
    7% (2)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice