Class 13 Quiz Flashcards
If you have a copy of the script bother.sh in your current directory, what would you type at the command line to run this script in the background?
./bother.sh &
If a command is running in the background, can it take input from the keyboard?
no
What would you type at the command line if you wanted to suspend a job running in the foreground?
Control Z
Name one of the two ways you make a job running in the background stop running.
bring it to the foreground and then stop it using Control C
or
use the kill command
What command would you use to see all currently running jobs?
jobs
Once you have suspended a job, what command would you use to send it into the background?
bg
When using the kill command to stop a running job, what information do you give to tell it what to kill?
either the job number or the process ID
If you run a command in the background and do not redirect it’s output, where does the output of this command go?
to the screen
What is the command to bring a background job into the foreground?
fg
When you run a command in the background, two number appear. What is each of these two numbers?
job number and process ID