Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to list all current background jobs.
Linux CLI
jobs [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-p' only lists process IDs without job status.
Using '-r' or '-s' filters jobs but does not list all.
✗ Incorrect
The '-l' option with 'jobs' shows the process IDs along with the job status.
2fill in blank
mediumComplete the code to bring the most recent background job to the foreground.
Linux CLI
fg [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '%1' or '%2' may not refer to the most recent job.
Using '%%' is correct but '%+' is more common.
✗ Incorrect
The '%+' or '%%' refers to the current job, usually the most recent background job.
3fill in blank
hardFix the error in the command to list only stopped jobs.
Linux CLI
jobs [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-r' lists running jobs, not stopped.
Using '-l' shows all jobs with details.
✗ Incorrect
The '-s' option lists only stopped jobs.
4fill in blank
hardFill both blanks to list only running jobs with their process IDs.
Linux CLI
jobs [1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-s' instead of '-r' shows stopped jobs.
Using '-p' only shows process IDs without filtering.
✗ Incorrect
The '-r' option filters running jobs, and '-l' shows process IDs.
5fill in blank
hardFill all three blanks to list jobs with process IDs and filter only stopped jobs.
Linux CLI
jobs [1] [2] [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-r' instead of '-s' shows running jobs.
Omitting '-l' hides process IDs.
✗ Incorrect
Use '-l' to show process IDs, '-s' to filter stopped jobs, and '-p' to list process IDs only (redundant but accepted).