Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to run the command sleep 10 in the background.
Linux CLI
sleep 10 [1]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '&&' runs the next command only if the first succeeds, not backgrounding.
Using '|' pipes output to another command, not backgrounding.
Using ';' runs commands sequentially, not in background.
✗ Incorrect
Adding '&' at the end runs the command in the background, allowing the terminal to accept new commands immediately.
2fill in blank
mediumComplete the code to run ping google.com in the background.
Linux CLI
ping google.com [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '&&' runs the next command only if the first succeeds, not backgrounding.
Using '|' pipes output, not background.
Using ';' runs commands one after another, not background.
✗ Incorrect
The '&' symbol runs the command in the background, freeing the terminal for other commands.
3fill in blank
hardFix the error in the command to run ls -l in the background.
Linux CLI
ls -l [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '&&' runs commands conditionally, not background.
Using '|' pipes output, not background.
Using ';' runs commands sequentially, not background.
✗ Incorrect
The '&' symbol correctly runs the command in the background. Other symbols do not background the process.
4fill in blank
hardFill both blanks to run sleep 5 in the background and then list jobs.
Linux CLI
sleep 5 [1] [2] jobs
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using ';' runs commands sequentially but does not ensure sleep is backgrounded.
Using '|' pipes output, which is not needed here.
✗ Incorrect
Use '&' to run sleep in background, then '&&' to run jobs only after sleep command is started.
5fill in blank
hardFill both blanks to run echo Hello in background, then run date only if echo succeeds, finally list jobs.
Linux CLI
echo Hello [1] date [2] jobs ;
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '|' pipes output, which is not needed here.
Using ';' instead of '&&' loses conditional execution.
✗ Incorrect
Use '&' to background echo, '&&' to run date only if echo succeeds, and ';' to run jobs after date.