Bird
0
0

You started sleep 15 & but jobs shows no running jobs. What could be the reason?

medium📝 Debug Q6 of 15
Linux CLI - Process Management
You started sleep 15 & but jobs shows no running jobs. What could be the reason?
AThe sleep command failed to start
BThe shell session does not support job control
CThe command was run with sudo
DThe terminal is in read-only mode
Step-by-Step Solution
Solution:
  1. Step 1: Understand job control

    Job control must be enabled in the shell to track background jobs with jobs.
  2. Step 2: Analyze options

    If job control is disabled (e.g., in non-interactive shells), jobs will not list background jobs.
  3. Step 3: Other options

    Sleep usually starts without error; sudo does not affect job control; read-only mode does not prevent jobs listing.
  4. Final Answer:

    The shell session does not support job control -> Option B
  5. Quick Check:

    Jobs need job control enabled [OK]
Quick Trick: jobs need job control enabled [OK]
Common Mistakes:
  • Assuming command failed silently
  • Thinking sudo affects jobs output
  • Confusing terminal mode with job control

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes