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.

Niklas Tech Blog
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.