0
0
Linux CLIscripting~10 mins

jobs command in Linux CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to list all current background jobs.

Linux CLI
jobs [1]
Drag options to blanks, or click blank then click option'
A-p
B-l
C-r
D-s
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.
2fill in blank
medium

Complete 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'
A%+
B%%
C%1
D%2
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.
3fill in blank
hard

Fix the error in the command to list only stopped jobs.

Linux CLI
jobs [1]
Drag options to blanks, or click blank then click option'
A-r
B-p
C-l
D-s
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-r' lists running jobs, not stopped.
Using '-l' shows all jobs with details.
4fill in blank
hard

Fill 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'
A-r
B-s
C-l
D-p
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-s' instead of '-r' shows stopped jobs.
Using '-p' only shows process IDs without filtering.
5fill in blank
hard

Fill 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'
A-l
B-s
C-p
D-r
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-r' instead of '-s' shows running jobs.
Omitting '-l' hides process IDs.