Is there any command to display all the Environment variables stored in my unix?
Asked
Active
Viewed 1,331 times
0
1 Answers
4
You can use printenv
or env
. See this post for the differences:
-
This displays all active environment variable, getting all stored ones (if that is what is wanted) is tricky. (for where could they be stored? answer: anywhere). I Hope though that getting a list of active ones is what you want. – ctrl-alt-delor Jul 11 '16 at 08:35
env
? You can sort the output withenv | sort
. – mnille Jul 11 '16 at 06:37ps eww -e
(note ps versions differ you may need to RTFM), note this will be really big (on my server it's 26,577 characters). – MAP Jul 11 '16 at 23:46