Recall & Review
beginner
What does the
jobs command do in Linux?The
jobs command shows the list of background and suspended jobs in the current shell session.Click to reveal answer
beginner
How do you identify a job's status using the
jobs command?The
jobs command shows each job with a status like Running, Stopped, or Done next to its job number.Click to reveal answer
beginner
What symbol is used to refer to a job in commands like
fg or bg?A job is referred to by a percent sign
% followed by the job number, for example, %1 for job number 1.Click to reveal answer
intermediate
How can you list all jobs including those from other sessions?
The
jobs command only shows jobs from the current shell session. To see jobs from other sessions, you need to use other tools like ps.Click to reveal answer
intermediate
What does the
jobs -l option do?The
jobs -l option shows the job list with the process IDs (PIDs) of each job, giving more detailed information.Click to reveal answer
What does the
jobs command display?✗ Incorrect
The
jobs command shows only the background and stopped jobs in the current shell session.How do you refer to job number 2 when using
fg or bg commands?✗ Incorrect
Jobs are referenced with a percent sign and the job number, like
%2.What does the status 'Stopped' mean in the
jobs output?✗ Incorrect
'Stopped' means the job is paused (usually by pressing Ctrl+Z) and waiting to be resumed.
Which option with
jobs shows process IDs?✗ Incorrect
The
-l option shows the job list with process IDs.Can
jobs show jobs from other terminal sessions?✗ Incorrect
The
jobs command only shows jobs from the current shell session.Explain how to use the
jobs command to check background tasks and how to bring a job back to the foreground.Think about how you see jobs and how you can control them.
You got /4 concepts.
Describe the difference between the
jobs command and the ps command in Linux.Consider what each command is designed to show.
You got /4 concepts.