Use the bash export command
From AcrodusWiki
The export command shows all shell environment variables. To show environment variables for just the current shell process use the command below:
export -p
The export command shows all shell environment variables. To show environment variables for just the current shell process use the command below:
export -p