Bird
0
0

Given this shell session:

medium📝 Command Output Q4 of 15
Linux CLI - Process Management
Given this shell session:
$ sleep 50 &
[1] 1010
$ sleep 60 &
[2] 1011
$ jobs
What will the jobs command output show?
A[1]- Stopped sleep 50 & [2]+ Stopped sleep 60 &
B[1]- Running sleep 50 & [2]+ Running sleep 60 &
C[1]- Done sleep 50 & [2]+ Done sleep 60 &
DNo output
Step-by-Step Solution
Solution:
  1. Step 1: Understand background jobs status

    Commands run with & run in background and show as Running in jobs output.
  2. Step 2: Analyze given commands

    Both sleep 50 & and sleep 60 & are running, so jobs shows them as running with job numbers.
  3. Final Answer:

    [1]- Running sleep 50 & [2]+ Running sleep 60 & -> Option B
  4. Quick Check:

    Background jobs status = Running [OK]
Quick Trick: Background jobs show as Running in jobs output [OK]
Common Mistakes:
  • Assuming jobs show Stopped by default
  • Expecting Done before completion
  • Thinking jobs shows no output for background

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes