List all bash environment variables

There are four easy ways to list all the environment variables in bash.

env
set
export
declare -x

The simple env command is probably the most commonly used.

Leave A Reply
All content licensed under the Creative Commons License