Bird
0
0

After executing the commands below, what will be the state of the job listed by jobs?

medium📝 Command Output Q4 of 15
Linux CLI - Process Management
After executing the commands below, what will be the state of the job listed by jobs?
sleep 150 &
jobs
kill -STOP %1
jobs
AThe job will be marked as stopped (T)
BThe job will be marked as running (R)
CThe job will be removed from the job list
DThe job will be marked as completed (Done)
Step-by-Step Solution
Solution:
  1. Step 1: Run sleep in background

    The job starts running in the background.
  2. Step 2: Send STOP signal

    kill -STOP pauses the process, changing its state to stopped.
  3. Step 3: Check jobs output

    Stopped jobs are shown with a 'T' status.
  4. Final Answer:

    The job will be marked as stopped (T) -> Option A
  5. Quick Check:

    STOP signal pauses job, status 'T' shown [OK]
Quick Trick: STOP signal changes job status to stopped (T) [OK]
Common Mistakes:
  • Assuming the job disappears after STOP
  • Confusing stopped (T) with running (R) status

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes