Last active
September 26, 2023 02:28
-
-
Save keyganker/def70aee8346937c47598d152c2ee2e7 to your computer and use it in GitHub Desktop.
查看某个进程的环境变量 #shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
方法一: | |
strings /proc/<PID>/environ | |
方法二: | |
ps eww -o command <PID> | tr ' ' '\n' | |
方法三: | |
cat /proc/25023/environ | tr ‘\0’ ‘\n’ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment