Find the parent PID of a Bash Script

0

For any number of reasons you may want to know the parent process ID of the current Bash script. You can find the parent process of the current Bash script or shell by printing the ‘$PPID‘ shell variable.

$ echo $PPID20341

Share.