Listing bash variables

If you want to quickly see the environment variables defined in bash, simply type the following in the prompt:

$<TAB><TAB>

Type $ and then hit the TAB key twice.

Other useful commands to see these variables are:

export

or…

export | cut -d ‘ ‘ -f 3-

or…

set | less

Leave a Reply

You must be logged in to post a comment.