Cloning
Cloning a process is also called forking in Linux. For example, if you execute a command, such as the sleep command in the shell, a new process gets created identical to the parent Bash shell process in which the sleep command gets executed. Normally, the parent process, in our example the Bash shell process, waits until the child process has been finished. That is why you don't get an interactive cursor as long as your subprocess is running. This is the normal behavior for every command you run in the shell. If your Bash command-line prompt is blocked, this is also called running a foreground job. To kill this foreground job, press Ctrl + C. You can also influence this foreground behavior by setting the ampersand symbol at the end ...
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