Question: what is the difference between running in the foreground and the background?
Answer: Background and foreground jobs The process that is connected to the terminal is called the foreground job. A job is said to be in the foreground because it can communicate with the user via the screen, and the keyboard. A Unix process can be disconnected from the terminal, and allowed to run in the background.