How are new processes created in Linux?
IntermediateConceptProcesses, Signals & systemd
Answer
Through fork() (or clone()), which duplicates the parent using copy-on-write memory, followed by execve(), which replaces the child's image with a new program. The shell does exactly this for every external command. The parent then calls wait() to collect the exit status.
pstree -p $$
More on Processes, Signals & systemd
What is the difference between a program, a process and a thread?BeginnerWhat is a zombie process, and how do you get rid of it?IntermediateWhat is an orphan process?BeginnerExplain the process states shown in ps (R, S, D, T, Z).IntermediateWhy can't you kill a process in D state?AdvancedWhat are signals? Name the important ones.Beginner