📜  bash 获取当前进程 ID - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:39.444000             🧑  作者: Mango

代码示例1
$! is the PID of the last backgrounded process.
kill -0 $PID checks whether it's still running.
$$ is the PID of the current shell.