Skip to content

Instantly share code, notes, and snippets.

@wikiti
Last active August 20, 2019 10:54
Show Gist options
  • Save wikiti/b152ab19b213edb6aedbdccaaa1c17be to your computer and use it in GitHub Desktop.
Save wikiti/b152ab19b213edb6aedbdccaaa1c17be to your computer and use it in GitHub Desktop.
Find the values of the inherited environment variables of a process
# Find out the PID of the process
ps -aux | grep <process-name>
# Check the environment variables
cat /proc/<pid>/environ | tr '\0' '\n'
# For example:
cat /proc/1234/environ | tr '\0' '\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment