parent process
The process that started another process; every process except the first records its parent's PID.
In more detail
Following parent PIDs shows how a process came to exist, for example started by your shell or by systemd. If a parent exits first, the orphaned child is adopted by PID 1 or a designated subreaper. The parent is also who collects the child's exit status.
Examples
pid=42 ppid=1 user=ana cmd=worker shows a process whose parent is PID 1.Unusual parent-child pairs are strong clues: Word starting PowerShell, or lsass.exe with any parent except wininit.exe.Related terms
- child process — A process started by another process, its parent, from which it inherits a copy of the environment and current directory.
- process ID — The number the kernel gives each running process so it can be told apart from all the others.
- init process — The first process started on a system or in a container, with process ID 1 and special duties.
- exit code — A number a process returns when it finishes: 0 means success, anything else means something went wrong.
- process tree — The family tree of running processes, where each process was started by a parent.
- process creation event — A log event recorded each time a program starts, with its command line, user and parent process.
Taught in
- What A Process Is — Linux Fundamentals & Systems Administration
- Signals, And What kill Really Sends — Linux Fundamentals & Systems Administration
- Job Control, And Processes That Outlive You — Linux Fundamentals & Systems Administration
- Alert Triage, False Positive Reduction & Fatigue Mitigation — Security Operations & Threat Hunting (SOC)
- Detection as Code: Authoring & Testing Sigma Rules — Security Operations & Threat Hunting (SOC)
- Memory Forensics: Process Trees & Injection — Security Operations & Threat Hunting (SOC)