Foreground processes or jobs
A foreground process or job is a process that is directly executed from the shell (also known as the controlling Terminal here). As long as that foreground job is running, other processes have to wait until it has completed for shell access.
This method of launching programs is fine, as long as a program is short and gets completed in a short period of time. If a program that requires a long time (say, many hours to complete) is launched from the shell in the foreground, it will make that shell unavailable for that number of hours. Such a practice is not suitable for command execution.
A foreground process will have + appended to its status when its details are viewed using the ps command. The plus + symbol means ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access