Skip to content

Instantly share code, notes, and snippets.

@uilian
Created May 17, 2023 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uilian/8f3d582938e8927f09e7353025004c11 to your computer and use it in GitHub Desktop.
Save uilian/8f3d582938e8927f09e7353025004c11 to your computer and use it in GitHub Desktop.
Show environment variables for process
# lists the env vars for the process
$ cat /proc/28818/environ | tr '\0' '\n'
# lists more details about the process, including the env vars
$ ps e -ww -p 28818
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment