How to list environment variables in Linux

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


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

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

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">

This site uses Akismet to reduce spam. Learn how your comment data is processed.