Problem Statement
How can you run a command in the background and bring it back to the foreground?
Explanation
Appending an ampersand (&) after a command runs it in the background, freeing the terminal.
To bring it back, use the fg command followed by its job number. You can check job numbers using jobs.
Code Solution
SolutionRead Only
sleep 60 & jobs fg %1
Practice Sets
This question appears in the following practice sets: