0
0
Linux CLIscripting~10 mins

fg and bg commands 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 resume a stopped job in the foreground.

Linux CLI
fg [1]
Drag options to blanks, or click blank then click option'
A1
Bresume
Cjob1
D%1
Attempts:
3 left
💡 Hint
Common Mistakes
Using the job number without the percent sign.
Typing the word 'resume' instead of the job reference.
2fill in blank
medium

Complete the command to send a job to the background.

Linux CLI
bg [1]
Drag options to blanks, or click blank then click option'
A%2
Bjob1
C2
Dbackground
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the percent sign before the job number.
Using descriptive words instead of job references.
3fill in blank
hard

Fix the error in the command to bring job 3 to the foreground.

Linux CLI
fg [1]
Drag options to blanks, or click blank then click option'
Ajob3
B3
C%3
Dforeground
Attempts:
3 left
💡 Hint
Common Mistakes
Using only the job number without the percent sign.
Typing descriptive words instead of job references.
4fill in blank
hard

Fill both blanks to send job 4 to the background and then bring it to the foreground.

Linux CLI
bg [1]
fg [2]
Drag options to blanks, or click blank then click option'
A%4
B4
C%5
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Using job numbers without the percent sign.
Using different job numbers for bg and fg.
5fill in blank
hard

Fill all three blanks to list jobs, send job 2 to background, and then bring it to foreground.

Linux CLI
jobs
bg [1]
fg [2]
jobs [3]
Drag options to blanks, or click blank then click option'
A%2
B2
C-l
D-p
Attempts:
3 left
💡 Hint
Common Mistakes
Using job number without percent sign for bg and fg.
Using incorrect option for jobs command.