IT 244: Introduction to Linux/Unix
Answers to Class 13 Ungraded Quiz

  1. If you have a copy of the executable script bother.sh in your current directory, what would you type at the command line to run this script in the background?
  2. If a command is running in the background, can it take input from the keyboard?
    no
  3. What would you type at the command line if you wanted to suspend a job running in the foreground?
    Control Z
  4. 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
  5. What command would you use to see all currently running jobs?
    jobs
  6. Once you have suspended a job, what command would you use to send it into the background?
    bg
  7. 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
  8. 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
  9. What is the command to bring a background job into the foreground?
    fg
  10. When you run a command in the background, two number appear. What is each of these two numbers?
    job number and process ID