Last active
August 20, 2019 10:54
-
-
Save wikiti/b152ab19b213edb6aedbdccaaa1c17be to your computer and use it in GitHub Desktop.
Find the values of the inherited environment variables of a process
This file contains hidden or 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
# 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