In Linux, what is the difference between a foreground job and a background job?
In a foreground job, all of your input is directed to the process's stdin
(including the SIGINT
that is generated when you press CTRL-C
, and that's why you can still kill the process if it's in the foreground).
In a background job your input is directed to the shell process instead, and that is why you see the shell prompt and you can execute commands.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With