发布网友
共1个回答
热心网友
通过pgrep 获取特定进程的PID.
cat /proc/$PID/environ
其中 $PID 指的就是前面获得的进程ID,注意 cat 和 /proc/$PID/environ之间有一个空格。