Linux はプロセス ID に基づいて実行中のプロセスの環境変数をチェックします。

cat /proc/$Pid/environ | tr '\0' '\n'

おすすめ

転載: blog.csdn.net/qq_36940806/article/details/134948733