> ## Content Index
> Fetch the complete content index at: https://www.bagz.fr/llms.txt
> Use this file to discover other available public pages before exploring further.

# Find parent PID of a running process in Linux
- URL: https://www.bagz.fr/find-parent-pid-of-a-running-process-in-linux/
- Published: 2023-07-07T22:00:44.000Z
- Updated: 2023-07-07T22:00:44.000Z
- Author: bgazui
- Tags: Linux, #Migrated-1790668826633, #wp, #wp-post, #Import 2026-09-29 08:00

When a process is starting sub-processes on a linux system, you would have to stop every single child processes in order to stop them all.

Instead of that, you can easily kill the parent process so it can stop spawning new process.

You can find the parent process with the following command (replace the CHILDPID with your PID):

```
ps -o ppid= -p $CHILDPID
```