Given the following output:
prompt> myapp [1]+ Stopped myapp prompt>
Which of the following commands will resume executing the stopped process while allowing the user to continue to type commands at the command prompt?
A.
exec myapp
B.
bg myapp
C.
continue myapp
D.
fg myapp
E.
myapp &
Explanation:
Process can start either in foreground. Running the process in foreground allows only one command can enter at a time because we will get the shell to type another command until finishing the current command. But background process allows to run the more than one command at a time. To run the process in background just append the & at the end of the command.Example:
# find / -name passwd >result & We can suspend the jobs running in foreground by pressing ctrl+z shortcut. As well as can resume the suspended jobs either in background or foreground.
#fg %jobid : Runs the job in foreground #bg %jobid : Runs the job in background or #fg command