IT 244: Introduction to Linux/Unix
Quiz 6 Answers

  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?
    ./bother.sh  &
  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. What command would you use to see all currently running jobs?
    jobs
  5. 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
  6. What does the ? meta-character match?
    any single character
  7. What does the * meta-character match?
    zero or more occurrences of any character
  8. What do the [ ] meta-characters match?
    a single instance of any character between the brackets
  9. What is a built-in?
    a command whose code is part of the shell and does not exist as an executable file on disc
  10. What command would you use the find out more about a built-in command?
    help