get the environment variables in linux code example
Example 1: print environment variables linux
ENV_VAR="hello world"
printenv ENV_VAR
Example 2: how to set environment variables in linux
source ~/.bash_profile
ENV_VAR="hello world"
printenv ENV_VAR
source ~/.bash_profile