sudo cat /proc/<pid>/environ | tr '\0' '\n'
Created
September 12, 2019 06:11
-
-
Save zhiguangwang/3cdd041904bc3b27e521dcc5c7b1869b to your computer and use it in GitHub Desktop.
Show the environment variables of a running process in Linux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've also found that using strings works well. Like this (using $$ is a nice quick way to test w/ bash):