Bash → 变量 → POSIX → This pageParent Process IDThe read–only $PPID variable contains the process id of the shell’s parent process.LinksBash manualBashSupport Pro 是一个 支持 $PPID 的 Bash 集成开发工具 – 马上试用!