Bird
0
0

Which of the following is the correct syntax to list all jobs with their process IDs using the jobs command?

easy📝 Syntax Q12 of 15
Linux CLI - Process Management
Which of the following is the correct syntax to list all jobs with their process IDs using the jobs command?
Ajobs -a
Bjobs --list-pid
Cjobs -p
Djobs -l
Step-by-Step Solution
Solution:
  1. Step 1: Recall jobs options

    The -l option with jobs lists jobs with their process IDs.
  2. Step 2: Verify other options

    -p lists only PIDs without job info, --list-pid is invalid, and -a shows all jobs including those not started by the shell.
  3. Final Answer:

    jobs -l -> Option D
  4. Quick Check:

    jobs -l shows jobs with PIDs [OK]
Quick Trick: Use -l to see job numbers plus process IDs [OK]
Common Mistakes:
  • Using invalid options like --list-pid
  • Confusing -p with -l
  • Assuming -a shows PIDs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes