How to list environment variables in Linux

To get all list of keys and values of the systems environment variables use the command:

env

With this command you can also remove environment variables. To do that use the following syntax:

env --unset= variable #or -u for short

Comments are closed.